/Linux-v6.1/tools/lib/perf/ |
D | cpumap.c | 15 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc() local 17 if (cpus != NULL) { in perf_cpu_map__alloc() 18 cpus->nr = nr_cpus; in perf_cpu_map__alloc() 19 refcount_set(&cpus->refcnt, 1); in perf_cpu_map__alloc() 22 return cpus; in perf_cpu_map__alloc() 27 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); in perf_cpu_map__dummy_new() local 29 if (cpus) in perf_cpu_map__dummy_new() 30 cpus->map[0].cpu = -1; in perf_cpu_map__dummy_new() 32 return cpus; in perf_cpu_map__dummy_new() 59 struct perf_cpu_map *cpus; in cpu_map__default_new() local [all …]
|
/Linux-v6.1/drivers/cpuidle/ |
D | coupled.c | 3 * coupled.c - helper functions to enter the same idle state on multiple cpus 24 * cpus cannot be independently powered down, either due to 31 * shared between the cpus (L2 cache, interrupt controller, and 33 * be tightly controlled on both cpus. 36 * WFI state until all cpus are ready to enter a coupled state, at 38 * cpus at approximately the same time. 40 * Once all cpus are ready to enter idle, they are woken by an smp 42 * cpus will find work to do, and choose not to enter idle. A 43 * final pass is needed to guarantee that all cpus will call the 46 * ready counter matches the number of online coupled cpus. If any [all …]
|
/Linux-v6.1/tools/perf/util/ |
D | evlist-hybrid.c | 24 struct perf_cpu_map *cpus; in evlist__add_default_hybrid() local 34 cpus = perf_cpu_map__get(pmu->cpus); in evlist__add_default_hybrid() 35 evsel->core.cpus = cpus; in evlist__add_default_hybrid() 36 evsel->core.own_cpus = perf_cpu_map__get(cpus); in evlist__add_default_hybrid() 92 struct perf_cpu_map *cpus; in evlist__fix_hybrid_cpus() local 100 cpus = perf_cpu_map__new(cpu_list); in evlist__fix_hybrid_cpus() 101 if (!cpus) in evlist__fix_hybrid_cpus() 105 * The evsels are created with hybrid pmu's cpus. But now we in evlist__fix_hybrid_cpus() 106 * need to check and adjust the cpus of evsel by cpu_list because in evlist__fix_hybrid_cpus() 107 * cpu_list may cause conflicts with cpus of evsel. For example, in evlist__fix_hybrid_cpus() [all …]
|
/Linux-v6.1/Documentation/admin-guide/cgroup-v1/ |
D | cpusets.rst | 31 2.2 Adding/removing cpus 43 Cpusets provide a mechanism for assigning a set of CPUs and Memory 57 include CPUs in its CPU affinity mask, and using the mbind(2) and 60 CPUs or Memory Nodes not in that cpuset. The scheduler will not 67 cpusets and which CPUs and Memory Nodes are assigned to each cpuset, 75 The management of large computer systems, with many processors (CPUs), 113 Cpusets provide a Linux kernel mechanism to constrain which CPUs and 117 CPUs a task may be scheduled (sched_setaffinity) and on which Memory 122 - Cpusets are sets of allowed CPUs and Memory Nodes, known to the 126 - Calls to sched_setaffinity are filtered to just those CPUs [all …]
|
/Linux-v6.1/Documentation/timers/ |
D | no_hz.rst | 19 2. Omit scheduling-clock ticks on idle CPUs (CONFIG_NO_HZ_IDLE=y or 23 3. Omit scheduling-clock ticks on CPUs that are either idle or that 65 Omit Scheduling-Clock Ticks For Idle CPUs 78 scheduling-clock interrupts to idle CPUs, which is critically important 86 idle CPUs. That said, dyntick-idle mode is not free: 104 Omit Scheduling-Clock Ticks For CPUs With Only One Runnable Task 109 Note that omitting scheduling-clock ticks for CPUs with only one runnable 110 task implies also omitting them for idle CPUs. 113 sending scheduling-clock interrupts to CPUs with a single runnable task, 114 and such CPUs are said to be "adaptive-ticks CPUs". This is important [all …]
|
/Linux-v6.1/include/linux/ |
D | stop_machine.h | 13 * function to be executed on a single or multiple cpus preempting all 14 * other processes and monopolizing those cpus until it finishes. 18 * cpus are online. 99 * stop_machine: freeze the machine on all CPUs and run this function 102 * @cpus: the cpus to run the @fn() on (NULL = any online cpu) 114 int stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus); 117 * stop_machine_cpuslocked: freeze the machine on all CPUs and run this function 120 * @cpus: the cpus to run the @fn() on (NULL = any online cpu) 125 int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus); 133 * Same as above, but instead of every CPU, only the logical CPUs of a [all …]
|
D | energy_model.h | 44 * @cpus: Cpumask covering the CPUs of the domain. It's here 49 * In case of CPU device, a "performance domain" represents a group of CPUs 50 * whose performance is scaled together. All CPUs of a performance domain 52 * a 1-to-1 mapping with CPUFreq policies. In case of other devices the @cpus 59 unsigned long cpus[]; member 78 #define em_span_cpus(em) (to_cpumask((em)->cpus)) 86 * maximum CPUs in such domain to 64. 92 * limits to number of CPUs in the Perf. Domain. 107 * In such scenario, where there are 4 CPUs in the Perf. Domain the 'sum_util' 136 * In case of CPUs, the power is the one of a single CPU in the domain, [all …]
|
/Linux-v6.1/tools/perf/arch/arm64/util/ |
D | header.c | 17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() argument 26 cpus = perf_cpu_map__get(cpus); in _get_cpuid() 28 for (cpu = 0; cpu < perf_cpu_map__nr(cpus); cpu++) { in _get_cpuid() 33 sysfs, cpus->map[cpu]); in _get_cpuid() 57 perf_cpu_map__put(cpus); in _get_cpuid() 67 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL); in get_cpuid() local 70 if (!cpus) in get_cpuid() 73 ret = _get_cpuid(buf, sz, cpus); in get_cpuid() 75 perf_cpu_map__put(cpus); in get_cpuid() 85 if (!pmu || !pmu->cpus) in get_cpuid_str() [all …]
|
/Linux-v6.1/tools/lib/perf/tests/ |
D | test-cpumap.c | 16 struct perf_cpu_map *cpus; in test_cpumap() local 24 cpus = perf_cpu_map__dummy_new(); in test_cpumap() 25 if (!cpus) in test_cpumap() 28 perf_cpu_map__get(cpus); in test_cpumap() 29 perf_cpu_map__put(cpus); in test_cpumap() 30 perf_cpu_map__put(cpus); in test_cpumap() 32 cpus = perf_cpu_map__default_new(); in test_cpumap() 33 if (!cpus) in test_cpumap() 36 perf_cpu_map__for_each_cpu(cpu, idx, cpus) in test_cpumap() 39 perf_cpu_map__put(cpus); in test_cpumap()
|
D | test-evlist.c | 36 struct perf_cpu_map *cpus; in test_stat_cpu() local 49 cpus = perf_cpu_map__new(NULL); in test_stat_cpu() 50 __T("failed to create cpus", cpus); in test_stat_cpu() 69 perf_evlist__set_maps(evlist, cpus, NULL); in test_stat_cpu() 75 cpus = perf_evsel__cpus(evsel); in test_stat_cpu() 77 for (idx = 0; idx < perf_cpu_map__nr(cpus); idx++) { in test_stat_cpu() 88 perf_cpu_map__put(cpus); in test_stat_cpu() 218 struct perf_cpu_map *cpus; in test_mmap_thread() local 264 cpus = perf_cpu_map__dummy_new(); in test_mmap_thread() 265 __T("failed to create cpus", cpus); in test_mmap_thread() [all …]
|
/Linux-v6.1/tools/testing/selftests/cgroup/ |
D | test_cpuset_prs.sh | 28 CPUS=$(lscpu | grep "^CPU(s)" | sed -e "s/.*:[[:space:]]*//") 29 [[ $CPUS -lt 8 ]] && skip_test "Test needs at least 8 cpus available!" 82 echo $EXPECTED_VAL > cpuset.cpus.partition 84 ACTUAL_VAL=$(cat cpuset.cpus.partition) 86 echo "cpuset.cpus.partition: expect $EXPECTED_VAL, found $EXPECTED_VAL" 95 ACTUAL_VAL=$(cat cpuset.cpus.effective) 97 echo "cpuset.cpus.effective: expect '$EXPECTED_VAL', found '$EXPECTED_VAL'" 122 echo 2-3 > cpuset.cpus 123 TYPE=$(cat cpuset.cpus.partition) 124 [[ $TYPE = member ]] || echo member > cpuset.cpus.partition [all …]
|
/Linux-v6.1/drivers/clk/sunxi/ |
D | clk-sun9i-cpus.c | 7 * Allwinner A80 CPUS clock driver 22 * sun9i_a80_cpus_clk_setup() - Setup function for a80 cpus composite clk 55 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); in sun9i_a80_cpus_clk_recalc_rate() local 60 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_recalc_rate() 155 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); in sun9i_a80_cpus_clk_set_rate() local 162 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_set_rate() 170 writel(reg, cpus->reg); in sun9i_a80_cpus_clk_set_rate() 188 struct sun9i_a80_cpus_clk *cpus; in sun9i_a80_cpus_setup() local 193 cpus = kzalloc(sizeof(*cpus), GFP_KERNEL); in sun9i_a80_cpus_setup() 194 if (!cpus) in sun9i_a80_cpus_setup() [all …]
|
/Linux-v6.1/drivers/cpufreq/ |
D | cpufreq-dt.c | 30 cpumask_var_t cpus; member 50 if (cpumask_test_cpu(cpu, priv->cpus)) in cpufreq_dt_find_data() 129 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init() 211 if (!alloc_cpumask_var(&priv->cpus, GFP_KERNEL)) in dt_cpufreq_early_init() 214 cpumask_set_cpu(cpu, priv->cpus); in dt_cpufreq_early_init() 232 ret = dev_pm_opp_of_get_sharing_cpus(cpu_dev, priv->cpus); in dt_cpufreq_early_init() 238 * operating-points-v2 not supported, fallback to all CPUs share in dt_cpufreq_early_init() 240 * sharing CPUs. in dt_cpufreq_early_init() 242 if (dev_pm_opp_get_sharing_cpus(cpu_dev, priv->cpus)) in dt_cpufreq_early_init() 247 * Initialize OPP tables for all priv->cpus. They will be shared by in dt_cpufreq_early_init() [all …]
|
/Linux-v6.1/Documentation/scheduler/ |
D | sched-energy.rst | 9 the impact of its decisions on the energy consumed by CPUs. EAS relies on an 10 Energy Model (EM) of the CPUs to select an energy efficient CPU for each task, 59 In short, EAS changes the way CFS tasks are assigned to CPUs. When it is time 64 knowledge about the platform's topology, which include the 'capacity' of CPUs, 72 differentiate CPUs with different computing throughput. The 'capacity' of a CPU 76 tasks and CPUs computed by the Per-Entity Load Tracking (PELT) mechanism. Thanks 79 energy trade-offs. The capacity of CPUs is provided via arch-specific code 99 Let us consider a platform with 12 CPUs, split in 3 performance domains 102 CPUs: 0 1 2 3 4 5 6 7 8 9 10 11 108 containing 6 CPUs. The two root domains are denoted rd1 and rd2 in the [all …]
|
/Linux-v6.1/Documentation/admin-guide/ |
D | kernel-per-CPU-kthreads.rst | 13 - Documentation/core-api/irq/irq-affinity.rst: Binding interrupts to sets of CPUs. 15 - Documentation/admin-guide/cgroup-v1: Using cgroups to bind tasks to sets of CPUs. 18 of CPUs. 21 call to bind tasks to sets of CPUs. 50 2. Do all eHCA-Infiniband-related work on other CPUs, including 53 provisioned only on selected CPUs. 101 with multiple CPUs, force them all offline before bringing the 102 first one back online. Once you have onlined the CPUs in question, 103 do not offline any other CPUs, because doing so could force the 104 timer back onto one of the CPUs in question. [all …]
|
/Linux-v6.1/Documentation/power/ |
D | suspend-and-cpuhotplug.rst | 27 |tasks | | cpus | | | | cpus | |tasks| 59 online CPUs 75 Note down these cpus in | P 100 | Call _cpu_up() [for all those cpus in the frozen_cpus mask, in a loop] 158 the non-boot CPUs are offlined or onlined, the _cpu_*() functions are called 177 update on the CPUs, as discussed below: 184 a. When all the CPUs are identical: 187 to apply the same microcode revision to each of the CPUs. 192 all CPUs, in order to handle case 'b' described below. 195 b. When some of the CPUs are different than the rest: [all …]
|
/Linux-v6.1/tools/perf/tests/ |
D | openat-syscall-all-cpus.c | 27 struct perf_cpu_map *cpus; in test__openat_syscall_event_on_all_cpus() local 40 cpus = perf_cpu_map__new(NULL); in test__openat_syscall_event_on_all_cpus() 41 if (cpus == NULL) { in test__openat_syscall_event_on_all_cpus() 56 if (evsel__open(evsel, cpus, threads) < 0) { in test__openat_syscall_event_on_all_cpus() 64 perf_cpu_map__for_each_cpu(cpu, idx, cpus) { in test__openat_syscall_event_on_all_cpus() 69 * without CPU_ALLOC. 1024 cpus in 2010 still seems in test__openat_syscall_event_on_all_cpus() 91 evsel->core.cpus = perf_cpu_map__get(cpus); in test__openat_syscall_event_on_all_cpus() 95 perf_cpu_map__for_each_cpu(cpu, idx, cpus) { in test__openat_syscall_event_on_all_cpus() 121 perf_cpu_map__put(cpus); in test__openat_syscall_event_on_all_cpus() 129 TEST_CASE_REASON("Detect openat syscall event on all cpus", [all …]
|
/Linux-v6.1/sound/soc/intel/boards/ |
D | sof_cs42l42.c | 308 struct snd_soc_dai_link_component *cpus, in create_spk_amp_dai_links() argument 340 links[*id].cpus = &cpus[*id]; in create_spk_amp_dai_links() 343 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_spk_amp_dai_links() 345 if (!links[*id].cpus->dai_name) { in create_spk_amp_dai_links() 358 struct snd_soc_dai_link_component *cpus, in create_hp_codec_dai_links() argument 378 links[*id].cpus = &cpus[*id]; in create_hp_codec_dai_links() 381 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_hp_codec_dai_links() 384 if (!links[*id].cpus->dai_name) in create_hp_codec_dai_links() 397 struct snd_soc_dai_link_component *cpus, in create_dmic_dai_links() argument 408 links[*id].cpus = &cpus[*id]; in create_dmic_dai_links() [all …]
|
D | sof_ssp_amp.c | 209 struct snd_soc_dai_link_component *cpus; in sof_card_dai_links_create() local 215 cpus = devm_kcalloc(dev, sof_ssp_amp_card.num_links, in sof_card_dai_links_create() 217 if (!links || !cpus) in sof_card_dai_links_create() 231 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 232 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 234 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 269 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 271 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_codec); in sof_card_dai_links_create() 272 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 281 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/csky/ |
D | cpus.txt | 5 The device tree allows to describe the layout of CPUs in a system through 6 the "cpus" node, which in turn contains a number of subnodes (ie "cpu") 9 Only SMP system need to care about the cpus node and single processor 10 needn't define cpus node at all. 13 cpus and cpu node bindings definition 16 - cpus node 20 The node name must be "cpus". 22 A cpus node must define the following properties: 59 cpus {
|
/Linux-v6.1/tools/lib/perf/include/perf/ |
D | cpumap.h | 23 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 24 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus); 29 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ argument 30 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 31 (idx) < perf_cpu_map__nr(cpus); \ 32 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx)) 34 #define perf_cpu_map__for_each_idx(idx, cpus) \ argument 35 for ((idx) = 0; (idx) < perf_cpu_map__nr(cpus); (idx)++)
|
/Linux-v6.1/Documentation/arm64/ |
D | asymmetric-32bit.rst | 16 of the CPUs are capable of executing 32-bit user applications. On such 56 The subset of CPUs capable of running 32-bit tasks is described in 60 **Note:** CPUs are advertised by this file as they are detected and so 61 late-onlining of 32-bit-capable CPUs can result in the file contents 62 being modified by the kernel at runtime. Once advertised, CPUs are never 71 affinity mask contains 64-bit-only CPUs. In this situation, the kernel 88 of all 32-bit-capable CPUs of which the kernel is aware. 98 the 32-bit-capable CPUs of the requested affinity mask. On success, the 112 64-bit-only CPUs and admission control is enabled. Concurrent offlining 113 of 32-bit-capable CPUs may still necessitate the procedure described in [all …]
|
/Linux-v6.1/sound/soc/fsl/ |
D | Kconfig | 2 menu "SoC Audio for Freescale CPUs" 4 comment "Common SoC Audio options for Freescale CPUs:" 13 support for the Freescale CPUs. 25 support for the Freescale CPUs. 35 support for the Freescale CPUs. 44 support for the NXP iMX CPUs. 53 support for the Freescale CPUs. 66 support for the Freescale CPUs. 76 (ESAI) support for the Freescale CPUs. 108 iMX CPUs. XCVR is a digital module that supports HDMI2.1 eARC, [all …]
|
/Linux-v6.1/kernel/rcu/ |
D | Kconfig | 16 thousands of CPUs. It also scales down nicely to 26 thousands of CPUs, but for which real-time response 107 context switches on all online CPUs, including idle ones, 124 CPU hotplug code paths. It can force IPIs on online CPUs, 154 large numbers of CPUs. This value must be at least the fourth 179 (hundreds or thousands of CPUs) will instead want to set this 240 bool "Offload RCU callback processing from boot-selected CPUs" 247 callback invocation to energy-efficient CPUs in battery-powered 253 This option offloads callback invocation from the set of CPUs 259 from running on the specified CPUs, but (1) the kthreads may be [all …]
|
/Linux-v6.1/Documentation/arm/ |
D | cluster-pm-race-avoidance.rst | 18 In a system containing multiple CPUs, it is desirable to have the 19 ability to turn off individual CPUs when the system is idle, reducing 22 In a system containing multiple clusters of CPUs, it is also desirable 27 of independently running CPUs, while the OS continues to run. This 92 CPUs in the cluster simultaneously modifying the state. The cluster- 104 referred to as a "CPU". CPUs are assumed to be single-threaded: 107 This means that CPUs fit the basic model closely. 216 A cluster is a group of connected CPUs with some common resources. 217 Because a cluster contains multiple CPUs, it can be doing multiple 272 which exact CPUs within the cluster play these roles. This must [all …]
|