/linux-6.12.1/Documentation/devicetree/bindings/timer/ ! |
D | riscv,timer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/timer/riscv,timer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: RISC-V timer 10 - Anup Patel <anup@brainfault.org> 13 RISC-V platforms always have a RISC-V timer device for the supervisor-mode 14 based on the time CSR defined by the RISC-V privileged specification. The 15 timer interrupts of this device are configured using the RISC-V SBI Time 16 extension or the RISC-V Sstc extension. [all …]
|
/linux-6.12.1/kernel/time/ ! |
D | timer.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * 1997-01-28 Modified by Finn Arne Gangstad to make timers scale better. 9 * 1997-09-10 Updated NTP code according to technical memorandum Jan '96 11 * 1998-12-24 Fixed a xtime SMP race (we need the xtime_lock rw spinlock to 14 * 1999-03-10 Improved NTP compatibility by Ulrich Windl 15 * 2002-05-31 Move sys_sysinfo here and make its locking sane, Robert Love 16 * 2000-10-05 Implemented scalable SMP per-CPU timer handling. 33 #include <linux/posix-timers.h> 34 #include <linux/cpu.h> 55 #include "tick-internal.h" [all …]
|
D | tick-broadcast.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file contains functions which emulate a local clock-event 6 * Copyright(C) 2005-2006, Thomas Gleixner <tglx@linutronix.de> 7 * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar 8 * Copyright(C) 2006-2007, Timesys Corp., Thomas Gleixner 10 #include <linux/cpu.h> 20 #include "tick-internal.h" 24 * timer stops in C3 state. 39 static void tick_broadcast_clear_oneshot(int cpu); 42 static void tick_broadcast_oneshot_offline(unsigned int cpu); [all …]
|
/linux-6.12.1/drivers/firmware/psci/ ! |
D | psci_checker.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/cpu.h> 31 static int tos_resident_cpu = -1; 42 * "enable-method" property of each CPU in the DT, but given that there is no 43 * arch-specific way to check this, we assume that the DT is sensible. 47 int migrate_type = -1; in psci_ops_check() 48 int cpu; in psci_ops_check() local 52 return -EOPNOTSUPP; in psci_ops_check() 61 for_each_online_cpu(cpu) in psci_ops_check() 62 if (psci_tos_resident_on(cpu)) { in psci_ops_check() [all …]
|
/linux-6.12.1/drivers/clocksource/ ! |
D | timer-riscv.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * All RISC-V systems have a timer attached to every hart. These timers can 11 #define pr_fmt(fmt) "riscv-timer: " fmt 16 #include <linux/cpu.h> 22 #include <linux/io-64-nonatomic-lo-hi.h> 26 #include <clocksource/timer-riscv.h> 107 static int riscv_timer_starting_cpu(unsigned int cpu) in riscv_timer_starting_cpu() argument 109 struct clock_event_device *ce = per_cpu_ptr(&riscv_clock_event, cpu); in riscv_timer_starting_cpu() 111 /* Clear timer interrupt */ in riscv_timer_starting_cpu() 114 ce->cpumask = cpumask_of(cpu); in riscv_timer_starting_cpu() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/cpu/ ! |
D | idle-states.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/cpu/idle-states.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 11 - Anup Patel <anup@brainfault.org> 15 1 - Introduction 18 ARM and RISC-V systems contain HW capable of managing power consumption 19 dynamically, where cores can be put in different low-power states (ranging 20 from simple wfi to power gating) according to OS PM policies. The CPU states [all …]
|
/linux-6.12.1/kernel/futex/ ! |
D | waitwake.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 * In futex wake up scenarios where no tasks are blocked on a futex, taking 34 * CPU 0 CPU 1 40 * sys_futex(WAKE, futex); 50 * This would cause the waiter on CPU 0 to wait forever because it 58 * CPU 0 CPU 1 64 * smp_mb(); (A) <-- paired with -. 70 * | sys_futex(WAKE, futex); 73 * `--------> smp_mb(); (B) 80 * waiters--; (b) unlock(hash_bucket(futex)); [all …]
|
/linux-6.12.1/lib/ ! |
D | Kconfig.kfence | 1 # SPDX-License-Identifier: GPL-2.0-only 7 bool "KFENCE: low-overhead sampling-based memory safety error detector" 12 KFENCE is a low-overhead sampling-based detector of heap out-of-bounds 13 access, use-after-free, and invalid-free errors. KFENCE is designed 17 See <file:Documentation/dev-tools/kfence.rst> for more details. 23 environments. If your kernel targets production use, and cannot 37 setting "kfence.sample_interval" to a non-zero value enables KFENCE. 49 bool "Use a deferrable timer to trigger allocations" 51 Use a deferrable timer to trigger allocations. This avoids forcing 52 CPU wake-ups if the system is idle, at the risk of a less predictable [all …]
|
/linux-6.12.1/kernel/rcu/ ! |
D | tree_nocb.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Read-Copy Update mechanism for mutual exclusion (tree-based version) 4 * Internal non-public definitions that provide either classic 23 if (!rdp->nocb_cb_kthread || !rdp->nocb_gp_kthread) in rcu_current_is_nocb_kthread() 26 if (current == rdp->nocb_cb_kthread || current == rdp->nocb_gp_kthread) in rcu_current_is_nocb_kthread() 33 * Offload callback processing from the boot-time-specified set of CPUs 35 * created that pull the callbacks from the corresponding CPU, wait for 39 * invoke callbacks. Each GP kthread invokes its own CBs. The no-CBs CPUs 42 * in which case each kthread actively polls its CPU. (Which isn't so great 43 * for energy efficiency, but which does reduce RCU's overhead on that CPU.) [all …]
|
/linux-6.12.1/arch/arm64/kvm/ ! |
D | arm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012 - Virtual Open Systems and Columbia University 9 #include <linux/entry-kvm.h> 85 * This functions as an allow-list of protected VM capabilities. 112 int r = -EINVAL; in kvm_vm_ioctl_enable_cap() 114 if (cap->flags) in kvm_vm_ioctl_enable_cap() 115 return -EINVAL; in kvm_vm_ioctl_enable_cap() 117 if (kvm_vm_is_protected(kvm) && !pkvm_ext_allowed(kvm, cap->cap)) in kvm_vm_ioctl_enable_cap() 118 return -EINVAL; in kvm_vm_ioctl_enable_cap() 120 switch (cap->cap) { in kvm_vm_ioctl_enable_cap() [all …]
|
/linux-6.12.1/kernel/sched/ ! |
D | deadline.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * guard against timer DoS. 58 return dl_se->dl_server; in dl_server() 74 struct rq *rq = dl_se->rq; in rq_of_dl_se() 84 return &rq_of_dl_se(dl_se)->dl; in dl_rq_of_se() 89 return !RB_EMPTY_NODE(&dl_se->rb_node); in on_dl_rq() 95 return dl_se->pi_se; in pi_of() 119 return &cpu_rq(i)->rd->dl_bw; in dl_bw_of() 124 struct root_domain *rd = cpu_rq(i)->rd; in dl_bw_cpus() 130 if (cpumask_subset(rd->span, cpu_active_mask)) in dl_bw_cpus() [all …]
|
D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Core kernel CPU scheduler code 7 * Copyright (C) 1991-2002 Linus Torvalds 8 * Copyright (C) 1998-2024 Ingo Molnar, Red Hat 72 # include <linux/entry-common.h> 97 #include "../../io_uring/io-wq.h" 163 if (p->sched_class == &stop_sched_class) /* trumps deadline */ in __task_prio() 164 return -2; in __task_prio() 166 if (p->dl_server) in __task_prio() 167 return -1; /* deadline */ in __task_prio() [all …]
|
/linux-6.12.1/Documentation/dev-tools/ ! |
D | kfence.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Kernel Electric-Fence (KFENCE) 7 Kernel Electric-Fence (KFENCE) is a low-overhead sampling-based memory safety 8 error detector. KFENCE detects heap out-of-bounds access, use-after-free, and 9 invalid-free errors. 15 non-production test workloads. One way to quickly achieve a large enough total 19 ----- 26 ``kfence.sample_interval`` to non-zero value), configure the kernel with:: 44 The sample interval controls a timer that sets up KFENCE allocations. By 45 default, to keep the real sample interval predictable, the normal timer also [all …]
|
/linux-6.12.1/drivers/usb/musb/ ! |
D | tusb6010.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * - Driver assumes that interface to external host (main CPU) is 27 #include <linux/dma-mapping.h> 51 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision() 68 void __iomem *tbase = musb->ctrl_base; in tusb_print_revision() 71 rev = musb->tusb_revision; in tusb_print_revision() 96 * Workaround for spontaneous WBUS wake-up issue #2 for tusb3.0. 101 void __iomem *tbase = musb->ctrl_base; in tusb_wbus_quirk() 114 dev_dbg(musb->controller, "Enabled tusb wbus quirk ctrl %08x ena %08x\n", in tusb_wbus_quirk() 123 dev_dbg(musb->controller, "Disabled tusb wbus quirk ctrl %08x ena %08x\n", in tusb_wbus_quirk() [all …]
|
/linux-6.12.1/kernel/power/ ! |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 9 suspend-to-RAM state (e.g. the ACPI S3 state). 30 user-space before invoking suspend. There's a run-time switch 32 This setting changes the default for the run-tim switch. Say Y 60 for suspend states like suspend-to-RAM (STR) often don't work very 72 <file:Documentation/power/swsusp-and-swap-files.rst>). 75 meantime you cannot use the swap partition(s)/file(s) involved in 122 The default resume partition is the partition that the suspend- 123 to-disk implementation will look for a suspended disk image. 157 non-zero numbered CPU, it may define ARCH_SUSPEND_NONZERO_CPU. This [all …]
|
/linux-6.12.1/drivers/power/reset/ ! |
D | at91-sama5d2_shdwc.c | 2 * Atmel SAMA5D2-Compatible Shutdown Controller (SHDWC) driver. 8 * Evolved from driver at91-poweroff.c. 15 * - addition to status of other wake-up inputs [1 - 15] 16 * - Analog Comparator wake-up alarm 17 * - Serial RX wake-up alarm 18 * - low power debouncer 50 #define AT91_SHDW_WUIR 0x0c /* Shutdown Wake-up Inputs Register */ 58 #define SHDW_WK_PIN(reg, cfg) ((reg) & AT91_SHDW_WKUPIS((cfg)->wkup_pin_input)) 59 #define SHDW_RTCWK(reg, cfg) (((reg) >> ((cfg)->sr_rtcwk_shift)) & 0x1) 60 #define SHDW_RTTWK(reg, cfg) (((reg) >> ((cfg)->sr_rttwk_shift)) & 0x1) [all …]
|
/linux-6.12.1/Documentation/admin-guide/pm/ ! |
D | cpuidle.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 .. |cpufreq| replace:: :doc:`CPU Performance Scaling <cpufreq>` 8 CPU Idle Time Management 27 CPU idle time management is an energy-efficiency feature concerned about using 31 ------------ 33 CPU idle time management operates on CPUs as seen by the *CPU scheduler* (that 37 software as individual single-core processors. In other words, a CPU is an 43 program) at a time, it is a CPU. In that case, if the hardware is asked to 46 Second, if the processor is multi-core, each core in it is able to follow at 61 Finally, each core in a multi-core processor may be able to follow more than one [all …]
|
/linux-6.12.1/drivers/acpi/ ! |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 19 Linux requires an ACPI-compliant platform (hardware/firmware), 20 and assumes the presence of OS-directed configuration and power 26 the Plug-and-Play BIOS specification (PnP BIOS), the 36 ACPI is an open industry specification originally co-developed by 37 Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba. Currently, 72 Enable in-kernel debugging of AML facilities: statistics, 130 This option enables a DMI-based quirk for the above Dell machine (so 183 performs user-defined actions such as shutting down the system. 184 This is necessary for software-controlled poweroff. [all …]
|
/linux-6.12.1/drivers/tty/ ! |
D | mips_ejtag_fdc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2007-2015 Imagination Technologies Ltd 25 #include <linux/timer.h> 87 * struct mips_ejtag_fdc_tty_port - Wrapper struct for FDC tty_port. 117 * struct mips_ejtag_fdc_tty - Driver data for FDC as a whole. 120 * @cpu: CPU number for this FDC. 123 * @ports: Per-channel data. 137 * @poll_timer: Timer for polling for interrupt events when @irq < 0. 144 unsigned int cpu; member 174 __raw_writel(data, priv->reg + offs); in mips_ejtag_fdc_write() [all …]
|
/linux-6.12.1/Documentation/scheduler/ ! |
D | sched-deadline.rst | 12 3. Scheduling Real-Time Tasks 18 4.1 System-wide settings 22 5. Tasks CPU affinity 33 system behavior. As for -rt (group) scheduling, it is assumed that root users 50 ------------------ 63 (clearly, if the system is overloaded this guarantee cannot be respected). 70 with the "traditional" real-time task model (see Section 3) can effectively 76 - Each SCHED_DEADLINE task is characterized by the "runtime", 79 - The state of the task is described by a "scheduling deadline", and 82 - When a SCHED_DEADLINE task wakes up (becomes ready for execution), [all …]
|
/linux-6.12.1/kernel/ ! |
D | softirq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Rewritten. Old one was good in 2.2, but in 2.3 it was immoral. --ANK (990903) 20 #include <linux/cpu.h> 38 - No shared variables, all the data are CPU local. 39 - If a softirq needs serialization, let it serialize itself 41 - Even if softirq is serialized, only local cpu is marked for 42 execution. Hence, we get something sort of weak cpu binding. 47 - NET RX softirq. It is multithreaded and does not require 49 - NET TX softirq. It kicks software netdevice queues, hence 52 - Tasklets: serialized wrt itself. [all …]
|
/linux-6.12.1/arch/arm/mach-omap1/ ! |
D | pm.c | 2 * linux/arch/arm/mach-omap1/pm.c 47 #include <linux/cpu.h> 55 #include <linux/soc/ti/omap1-io.h> 57 #include <linux/omap-dma.h> 58 #include <clocksource/timer-ti-dm.h> 91 return -EINVAL; in idle_store() 129 * tests above as soon as drivers, timer and DMA code have been fixed. in omap1_pm_idle() 163 * Turn off all interrupts except GPIO bank 1, L1-2nd level cascade, in omap_pm_wakeup_setup() 166 * wake up to a GPIO interrupt. in omap_pm_wakeup_setup() 263 /* (Step 3 removed - we now allow deep sleep by default) */ in omap1_pm_suspend() [all …]
|
/linux-6.12.1/Documentation/kernel-hacking/ ! |
D | hacking.rst | 20 this document, being grossly under-qualified, but I always wanted to 30 - not associated with any process, serving a hardware interrupt; 32 - not associated with any process, serving a softirq or tasklet; 34 - running in kernel space, associated with a process (user context); 36 - running a process in user space. 40 by the ones above it. For example, while a softirq is running on a CPU, 45 to become truly non-preemptable. 48 ------------ 69 ------------------------------- 71 Timer ticks, network cards and keyboard are examples of real hardware [all …]
|
/linux-6.12.1/arch/powerpc/include/asm/ ! |
D | smu.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * These commands are used to retrieve the sdb-partition-XX datas from 31 * - 0..1 : partition address 32 * - 2 : a byte containing the partition ID 33 * - 3 : length (maybe other bits are rest of header ?) 53 * --------------------- 66 * ------------------------ 88 * timer, but also a PRAM 115 * 0: bus number (from device-tree usually, SMU has lots of busses !) 128 * - 0x00: Simple transfer [all …]
|
/linux-6.12.1/drivers/tty/serial/ ! |
D | imx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 31 #include <linux/dma-mapping.h> 34 #include <linux/dma/imx-dma.h> 49 #define UTIM 0xa0 /* Escape Timer Register */ 79 #define UCR1_ATDMAEN (1<<2) /* Aging DMA Timer Enable */ 92 #define UCR2_ATEN (1<<3) /* Aging Timer Enable */ 104 #define UCR3_AIRINTEN (1<<5) /* Async IR wake interrupt enable */ 105 #define UCR3_AWAKEN (1<<4) /* Async wake interrupt enable */ 114 #define UCR4_WKEN (1<<7) /* Wake interrupt enable */ 126 #define UFCR_RFDIV_REG(x) (((x) < 7 ? 6 - (x) : 6) << 7) [all …]
|