| /kernel/linux/linux-5.10/drivers/base/power/ |
| D | qos.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * This module exposes the interface to kernel space for specifying 8 * per-device PM QoS dependencies. It provides infrastructure for registration 16 * Watchers can register a per-device notification callback using the 18 * per-device constraint data struct. 20 * Note about the per-device constraint data struct allocation: 21 * . The per-device constraints data struct ptr is stored into the device 23 * . To minimize the data usage by the per-device constraints, the data struct 46 * __dev_pm_qos_flags - Check PM QoS flags for a given device. 50 * This routine must be called with dev->power.lock held. [all …]
|
| /kernel/linux/linux-6.6/drivers/base/power/ |
| D | qos.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * This module exposes the interface to kernel space for specifying 8 * per-device PM QoS dependencies. It provides infrastructure for registration 16 * Watchers can register a per-device notification callback using the 18 * per-device constraint data struct. 20 * Note about the per-device constraint data struct allocation: 21 * . The per-device constraints data struct ptr is stored into the device 23 * . To minimize the data usage by the per-device constraints, the data struct 46 * __dev_pm_qos_flags - Check PM QoS flags for a given device. 50 * This routine must be called with dev->power.lock held. [all …]
|
| /kernel/linux/linux-6.6/Documentation/power/powercap/ |
| D | dtpm.rst | 1 .. SPDX-License-Identifier: GPL-2.0 18 The user space is the most adequate place to dynamically act on the 48 `-- pkg 50 |-- pd0 (cpu0-3) 52 `-- pd1 (cpu4-5) 56 SoC (400mW - 3100mW) 58 `-- pkg (400mW - 3100mW) 60 |-- pd0 (100mW - 700mW) 62 `-- pd1 (300mW - 2400mW) 66 SoC (600mW - 5900mW) [all …]
|
| D | powercap.rst | 6 and the user space that allows power capping drivers to expose the settings to 7 user space in a uniform way. 12 The framework exposes power capping devices to user space via sysfs in the 15 example, the intel-rapl control type represents the Intel "Running Average 16 Power Limit" (RAPL) technology, whereas the 'idle-injection' control type 35 └──intel-rapl 36 ├──intel-rapl:0 43 │ ├──device -> ../../intel-rapl 45 │ ├──intel-rapl:0:0 52 │ │ ├──device -> ../../intel-rapl:0 [all …]
|
| /kernel/linux/linux-5.10/Documentation/power/powercap/ |
| D | powercap.rst | 6 and the user space that allows power capping drivers to expose the settings to 7 user space in a uniform way. 12 The framework exposes power capping devices to user space via sysfs in the 15 example, the intel-rapl control type represents the Intel "Running Average 16 Power Limit" (RAPL) technology, whereas the 'idle-injection' control type 35 └──intel-rapl 36 ├──intel-rapl:0 43 │ ├──device -> ../../intel-rapl 45 │ ├──intel-rapl:0:0 52 │ │ ├──device -> ../../intel-rapl:0 [all …]
|
| /kernel/linux/linux-6.6/kernel/power/ |
| D | qos.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * or through a built-in notification mechanism. 50 * pm_qos_read_value - Return the current effective constraint value. 51 * @c: List of PM QoS constraint requests. 55 return READ_ONCE(c->target_value); in pm_qos_read_value() 60 if (plist_head_empty(&c->list)) in pm_qos_get_value() 61 return c->no_constraint_value; in pm_qos_get_value() 63 switch (c->type) { in pm_qos_get_value() 65 return plist_first(&c->list)->prio; in pm_qos_get_value() 68 return plist_last(&c->list)->prio; in pm_qos_get_value() [all …]
|
| /kernel/linux/linux-5.10/kernel/power/ |
| D | qos.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * or through a built-in notification mechanism. 50 * pm_qos_read_value - Return the current effective constraint value. 51 * @c: List of PM QoS constraint requests. 55 return READ_ONCE(c->target_value); in pm_qos_read_value() 60 if (plist_head_empty(&c->list)) in pm_qos_get_value() 61 return c->no_constraint_value; in pm_qos_get_value() 63 switch (c->type) { in pm_qos_get_value() 65 return plist_first(&c->list)->prio; in pm_qos_get_value() 68 return plist_last(&c->list)->prio; in pm_qos_get_value() [all …]
|
| /kernel/linux/linux-5.10/Documentation/arm/ |
| D | porting.rst | 5 Taken from list archive at http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2001-July/00406… 8 ------------------- 14 phys = virt - PAGE_OFFSET + PHYS_OFFSET 18 -------------------- 25 to be located in RAM, it can be in flash or other read-only or 26 read-write addressable medium. 29 Start address of zero-initialised work area for the decompressor. 35 and eventually executed. The following constraint must be valid: 48 Virtual address of the initial RAM disk. The following constraint 59 -------------- [all …]
|
| /kernel/linux/linux-6.6/Documentation/arch/arm/ |
| D | porting.rst | 5 Taken from list archive at http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2001-July/00406… 8 ------------------- 14 phys = virt - PAGE_OFFSET + PHYS_OFFSET 18 -------------------- 25 to be located in RAM, it can be in flash or other read-only or 26 read-write addressable medium. 29 Start address of zero-initialised work area for the decompressor. 35 and eventually executed. The following constraint must be valid: 48 Virtual address of the initial RAM disk. The following constraint 59 -------------- [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | oom.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 43 * order == -1 means the oom kill is required by sysrq, otherwise only 53 /* Used to print the constraint info. */ 54 enum oom_constraint constraint; member 62 current->signal->oom_flag_origin = true; in set_current_oom_origin() 67 current->signal->oom_flag_origin = false; in clear_current_oom_origin() 72 return p->signal->oom_flag_origin; in oom_task_origin() 77 return tsk->signal->oom_mm; in tsk_is_oom_victim() 83 * address space which is reflected by MMF_UNSTABLE flag set in 95 if (unlikely(test_bit(MMF_UNSTABLE, &mm->flags))) in check_stable_address_space()
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | oom.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 43 * order == -1 means the oom kill is required by sysrq, otherwise only 53 /* Used to print the constraint info. */ 54 enum oom_constraint constraint; member 62 current->signal->oom_flag_origin = true; in set_current_oom_origin() 67 current->signal->oom_flag_origin = false; in clear_current_oom_origin() 72 return p->signal->oom_flag_origin; in oom_task_origin() 77 return tsk->signal->oom_mm; in tsk_is_oom_victim() 81 * Use this helper if tsk->mm != mm and the victim mm needs a special 86 return test_bit(MMF_OOM_VICTIM, &mm->flags); in mm_is_oom_victim() [all …]
|
| /kernel/linux/linux-5.10/sound/core/ |
| D | pcm_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Abramo Bagnara <abramo@alsa-project.org> 38 * runtime->silence_start: starting pointer to silence area 39 * runtime->silence_filled: size filled with silence 40 * runtime->silence_threshold: threshold from application 41 * runtime->silence_size: maximal size from application 43 * when runtime->silence_size >= runtime->boundary - fill processed area with silence immediately 47 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() 51 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence() 53 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence() [all …]
|
| /kernel/linux/linux-6.6/sound/core/ |
| D | pcm_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Abramo Bagnara <abramo@alsa-project.org> 43 delta = new_ptr - ptr; in update_silence_vars() 47 delta += runtime->boundary; in update_silence_vars() 48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars() 49 runtime->silence_filled -= delta; in update_silence_vars() 51 runtime->silence_filled = 0; in update_silence_vars() 52 runtime->silence_start = new_ptr; in update_silence_vars() 57 * runtime->silence_start: starting pointer to silence area 58 * runtime->silence_filled: size filled with silence [all …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/thermal/ |
| D | intel_dptf.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 ------------ 25 to user space. This allows user space thermal solutions like 31 ---------------------------- 39 user space can support those policies. 43 "42A441D6-AE6A-462b-A84B-4A8CE79027D3" : Passive 1 45 "3A95C389-E4B8-4629-A526-C52C88626BAE" : Active 47 "97C68AE7-15FA-499c-B8C9-5DA81D606E0A" : Critical 49 "63BE270F-1C11-48FD-A6F7-3AF253FF3E2D" : Adaptive performance 51 "5349962F-71E6-431D-9AE8-0A635B710AEE" : Emergency call [all …]
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/pm/ |
| D | cpuidle.rst | 1 .. SPDX-License-Identifier: GPL-2.0 27 CPU idle time management is an energy-efficiency feature concerned about using 31 ------------ 37 software as individual single-core processors. In other words, a CPU is an 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 66 multiple individual single-core "processors", referred to as *hardware threads* 67 (or hyper-threads specifically on Intel hardware), that each can follow one 78 --------- 112 .. _idle-loop: [all …]
|
| /kernel/linux/linux-6.6/Documentation/admin-guide/pm/ |
| D | cpuidle.rst | 1 .. SPDX-License-Identifier: GPL-2.0 27 CPU idle time management is an energy-efficiency feature concerned about using 31 ------------ 37 software as individual single-core processors. In other words, a CPU is an 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 66 multiple individual single-core "processors", referred to as *hardware threads* 67 (or hyper-threads specifically on Intel hardware), that each can follow one 78 --------- 112 .. _idle-loop: [all …]
|
| /kernel/linux/linux-6.6/kernel/ |
| D | resource.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 .end = -1, 61 if (p->child) in next_resource() 62 return p->child; in next_resource() 63 while (!p->sibling && p->parent) in next_resource() 64 p = p->parent; in next_resource() 65 return p->sibling; in next_resource() 70 while (!p->sibling && p->parent) in next_resource_skip_children() 71 p = p->parent; in next_resource_skip_children() 72 return p->sibling; in next_resource_skip_children() [all …]
|
| /kernel/linux/linux-6.6/mm/ |
| D | oom_kill.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * Since we won't call these routines often (on a well-configured 73 return oc->memcg != NULL; in is_memcg_oom() 78 * oom_cpuset_eligible() - check task eligibility for kill 86 * This function is assuming oom-killer context and 'current' has triggered 87 * the oom-killer. 94 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible() 128 * The process p may have detached its own ->mm while exiting or through 130 * pointer. Return p, or any of its subthreads with a valid ->mm, with 141 if (likely(t->mm)) in find_lock_task_mm() [all …]
|
| /kernel/linux/linux-5.10/mm/ |
| D | oom_kill.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * Since we won't call these routines often (on a well-configured 72 return oc->memcg != NULL; in is_memcg_oom() 77 * oom_cpuset_eligible() - check task eligiblity for kill 85 * This function is assuming oom-killer context and 'current' has triggered 86 * the oom-killer. 93 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible() 130 * The process p may have detached its own ->mm while exiting or through 132 * pointer. Return p, or any of its subthreads with a valid ->mm, with 143 if (likely(t->mm)) in find_lock_task_mm() [all …]
|
| /kernel/linux/linux-5.10/Documentation/sound/designs/ |
| D | tracepoints.rst | 19 ------------------------------------ 25 ----------------------------------------------------- 53 - SNDRV_PCM_HW_PARAM_ACCESS 54 - SNDRV_PCM_HW_PARAM_FORMAT 55 - SNDRV_PCM_HW_PARAM_SUBFORMAT 61 - SNDRV_PCM_HW_PARAM_SAMPLE_BITS 62 - SNDRV_PCM_HW_PARAM_FRAME_BITS 63 - SNDRV_PCM_HW_PARAM_CHANNELS 64 - SNDRV_PCM_HW_PARAM_RATE 65 - SNDRV_PCM_HW_PARAM_PERIOD_TIME [all …]
|
| /kernel/linux/linux-6.6/Documentation/sound/designs/ |
| D | tracepoints.rst | 19 ------------------------------------ 25 ----------------------------------------------------- 53 - SNDRV_PCM_HW_PARAM_ACCESS 54 - SNDRV_PCM_HW_PARAM_FORMAT 55 - SNDRV_PCM_HW_PARAM_SUBFORMAT 61 - SNDRV_PCM_HW_PARAM_SAMPLE_BITS 62 - SNDRV_PCM_HW_PARAM_FRAME_BITS 63 - SNDRV_PCM_HW_PARAM_CHANNELS 64 - SNDRV_PCM_HW_PARAM_RATE 65 - SNDRV_PCM_HW_PARAM_PERIOD_TIME [all …]
|
| /kernel/linux/linux-5.10/arch/openrisc/mm/ |
| D | init.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 60 * Map all physical memory into kernel's address space. 62 * This is explicitly coded for two-level page tables, so if you need 76 /* These mark extents of read-only kernel pages... in map_ram() 97 "two-level page tables", in map_ram() 123 printk(KERN_INFO "%s: Memory: 0x%x-0x%x\n", __func__, in map_ram() 168 *itlb_vector = ((unsigned long)&itlb_miss_handler - in paging_init() 171 /* Soft ordering constraint to ensure that dtlb_vector is in paging_init() 177 *dtlb_vector = ((unsigned long)&dtlb_miss_handler - in paging_init() [all …]
|
| /kernel/linux/linux-6.6/arch/x86/include/asm/ |
| D | uaccess_64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * User space memory access functions 10 #include <linux/kasan-checks.h> 22 * Refer tlbstate_untag_mask directly to avoid RIP-relative relocation in __untagged_addr() 42 return addr & (mm)->context.untag_mask; in __untagged_addr_remote() 53 * The virtual address space space is logically divided into a kernel 60 * User pointers can have tag bits on x86-64. This scheme tolerates 64 * 1. 'ptr' must be in the user half of the address space 68 * and will GP-fault even with LAM enabled if the sign bit is set (see 78 * at 'ptr', and even if the end might be in kernel space, we'll [all …]
|
| /kernel/linux/linux-6.6/arch/openrisc/mm/ |
| D | init.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 56 * Map all physical memory into kernel's address space. 58 * This is explicitly coded for two-level page tables, so if you need 72 /* These mark extents of read-only kernel pages... in map_ram() 93 "two-level page tables", in map_ram() 119 printk(KERN_INFO "%s: Memory: 0x%x-0x%x\n", __func__, in map_ram() 159 *itlb_vector = ((unsigned long)&itlb_miss_handler - in paging_init() 162 /* Soft ordering constraint to ensure that dtlb_vector is in paging_init() 168 *dtlb_vector = ((unsigned long)&dtlb_miss_handler - in paging_init() [all …]
|
| /kernel/linux/linux-5.10/kernel/ |
| D | resource.c | 1 // SPDX-License-Identifier: GPL-2.0-only 41 .end = -1, 68 return p->sibling; in next_resource() 70 if (p->child) in next_resource() 71 return p->child; in next_resource() 72 while (!p->sibling && p->parent) in next_resource() 73 p = p->parent; in next_resource() 74 return p->sibling; in next_resource() 91 struct resource *p = PDE_DATA(file_inode(m->file)); in r_start() 94 for (p = p->child; p && l < *pos; p = r_next(m, p, &l)) in r_start() [all …]
|