Home
last modified time | relevance | path

Searched refs:cpu_count (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.12.1/tools/power/cpupower/utils/idle_monitor/
Dmperf_monitor.c231 for (cpu = 0; cpu < cpu_count; cpu++) { in mperf_start()
243 for (cpu = 0; cpu < cpu_count; cpu++) { in mperf_stop()
345 is_valid = calloc(cpu_count, sizeof(int)); in mperf_register()
346 mperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
347 aperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
348 mperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
349 aperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
350 tsc_at_measure_start = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
351 tsc_at_measure_end = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
Dcpuidle_sysfs.c48 for (cpu = 0; cpu < cpu_count; cpu++) { in cpuidle_start()
67 for (cpu = 0; cpu < cpu_count; cpu++) { in cpuidle_stop()
178 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
179 current_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
180 for (num = 0; num < cpu_count; num++) { in cpuidle_register()
195 for (num = 0; num < cpu_count; num++) { in cpuidle_unregister()
Dsnb_idle.c117 for (cpu = 0; cpu < cpu_count; cpu++) { in snb_start()
134 for (cpu = 0; cpu < cpu_count; cpu++) { in snb_stop()
166 is_valid = calloc(cpu_count, sizeof(int)); in snb_register()
168 previous_count[num] = calloc(cpu_count, in snb_register()
170 current_count[num] = calloc(cpu_count, in snb_register()
Dhsw_ext_idle.c119 for (cpu = 0; cpu < cpu_count; cpu++) { in hsw_ext_start()
136 for (cpu = 0; cpu < cpu_count; cpu++) { in hsw_ext_stop()
161 is_valid = calloc(cpu_count, sizeof(int)); in hsw_ext_register()
163 previous_count[num] = calloc(cpu_count, in hsw_ext_register()
165 current_count[num] = calloc(cpu_count, in hsw_ext_register()
Dnhm_idle.c134 for (cpu = 0; cpu < cpu_count; cpu++) { in nhm_start()
153 for (cpu = 0; cpu < cpu_count; cpu++) { in nhm_stop()
180 is_valid = calloc(cpu_count, sizeof(int)); in intel_nhm_register()
182 previous_count[num] = calloc(cpu_count, in intel_nhm_register()
184 current_count[num] = calloc(cpu_count, in intel_nhm_register()
Dcpupower-monitor.c30 int cpu_count; variable
330 for (cpu = 0; cpu < cpu_count; cpu++) in do_interval_measure()
342 for (cpu = 0; cpu < cpu_count; cpu++) in do_interval_measure()
394 cpu_count = get_cpu_topology(&cpu_top); in cmd_monitor()
395 if (cpu_count < 0) { in cmd_monitor()
407 dprint("System has up to %d CPU cores\n", cpu_count); in cmd_monitor()
438 cpu_top.pkgs, cpu_top.cores, cpu_count); in cmd_monitor()
455 for (cpu = 0; cpu < cpu_count; cpu++) { in cmd_monitor()
Damd_fam14h_idle.c233 for (cpu = 0; cpu < cpu_count; cpu++) in amd_fam14h_start()
253 for (cpu = 0; cpu < cpu_count; cpu++) in amd_fam14h_stop()
294 previous_count[num] = calloc(cpu_count, in amd_fam14h_register()
296 current_count[num] = calloc(cpu_count, in amd_fam14h_register()
/linux-6.12.1/arch/xtensa/kernel/
Djump_label.c27 atomic_t cpu_count; member
43 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_stop_machine()
45 atomic_inc(&patch->cpu_count); in patch_text_stop_machine()
47 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_stop_machine()
58 .cpu_count = ATOMIC_INIT(0), in patch_text()
/linux-6.12.1/drivers/thermal/intel/
Dintel_hfi.c204 int i = 0, cpu_count; in update_capabilities() local
209 cpu_count = cpumask_weight(hfi_instance->cpus); in update_capabilities()
212 if (!cpu_count) in update_capabilities()
215 cpu_caps = kcalloc(cpu_count, sizeof(*cpu_caps), GFP_KERNEL); in update_capabilities()
221 if (cpu_count < HFI_THERMNL_CAPS_PER_EVENT) in update_capabilities()
226 (i + HFI_THERMNL_CAPS_PER_EVENT) <= cpu_count; in update_capabilities()
231 cpu_count = cpu_count - i; in update_capabilities()
235 if (cpu_count) in update_capabilities()
236 thermal_genl_cpu_capability_event(cpu_count, &cpu_caps[i]); in update_capabilities()
/linux-6.12.1/arch/arm64/kernel/
Dsmp.c513 static unsigned int cpu_count = 1; variable
599 if (is_mpidr_duplicate(cpu_count, hwid)) { in acpi_map_gic_cpu_interface()
616 if (cpu_count >= NR_CPUS) in acpi_map_gic_cpu_interface()
620 set_cpu_logical_map(cpu_count, hwid); in acpi_map_gic_cpu_interface()
622 cpu_madt_gicc[cpu_count] = *processor; in acpi_map_gic_cpu_interface()
633 acpi_set_mailbox_entry(cpu_count, processor); in acpi_map_gic_cpu_interface()
635 cpu_count++; in acpi_map_gic_cpu_interface()
699 if (is_mpidr_duplicate(cpu_count, hwid)) { in of_parse_and_init_cpus()
730 if (cpu_count >= NR_CPUS) in of_parse_and_init_cpus()
734 set_cpu_logical_map(cpu_count, hwid); in of_parse_and_init_cpus()
[all …]
Dpatching.c204 atomic_t cpu_count; member
213 if (atomic_inc_return(&pp->cpu_count) == num_online_cpus()) { in aarch64_insn_patch_text_cb()
218 atomic_inc(&pp->cpu_count); in aarch64_insn_patch_text_cb()
220 while (atomic_read(&pp->cpu_count) <= num_online_cpus()) in aarch64_insn_patch_text_cb()
234 .cpu_count = ATOMIC_INIT(0), in aarch64_insn_patch_text()
/linux-6.12.1/arch/s390/hypfs/
Dhypfs_diag0c.c32 unsigned int cpu_count, cpu, i; in diag0c_store() local
36 cpu_count = num_online_cpus(); in diag0c_store()
42 diag0c_data = kzalloc(struct_size(diag0c_data, entry, cpu_count), in diag0c_store()
54 *count = cpu_count; in diag0c_store()
/linux-6.12.1/tools/testing/selftests/rcutorture/bin/
Dkvm-test-1-run.sh146 cpu_count=`configNR_CPUS.sh $resdir/ConfigFragment`
147 cpu_count=`configfrag_boot_cpus "$boot_args_in" "$config_template" "$cpu_count"`
148 if test "$cpu_count" -gt "$TORTURE_ALLOTED_CPUS"
150 echo CPU count limited from $cpu_count to $TORTURE_ALLOTED_CPUS | tee -a $resdir/Warnings
151 cpu_count=$TORTURE_ALLOTED_CPUS
153 qemu_args="`specify_qemu_cpus "$QEMU" "$qemu_args" "$cpu_count"`"
209 echo "# TORTURE_CPU_COUNT=$cpu_count" >> $resdir/qemu-cmd
Dkvm.sh332 cpu_count=`configNR_CPUS.sh $T/KCONFIG_ARG`
334 cpu_count=`configNR_CPUS.sh $CONFIGFRAG/$CF1`
336 cpu_count=`configfrag_boot_cpus "$TORTURE_BOOTARGS" "$CONFIGFRAG/$CF1" "$cpu_count"`
337 cpu_count=`configfrag_boot_maxcpus "$TORTURE_BOOTARGS" "$CONFIGFRAG/$CF1" "$cpu_count"`
338 echo 'scenariocpu["'"$CF1"'"] = '"$cpu_count"';' >> $T/cfgcpu.awk
Dkvm-test-1-run-batch.sh78 affinity_export="`awk -f $T/cpubatches.awk -v cpu_count="$cpu_count" -v scenario=$i < /dev/null`"
/linux-6.12.1/arch/arm/mach-axxia/
Dplatsmp.c56 int cpu_count = 0; in axxia_smp_prepare_cpus() local
73 if (cpu_count < max_cpus) { in axxia_smp_prepare_cpus()
75 cpu_count++; in axxia_smp_prepare_cpus()
/linux-6.12.1/arch/riscv/kernel/
Dsmpboot.c69 static unsigned int cpu_count = 1; variable
102 if (cpu_count >= NR_CPUS) { in acpi_parse_rintc()
107 cpuid_to_hartid_map(cpu_count) = hart; in acpi_parse_rintc()
108 cpu_count++; in acpi_parse_rintc()
Dpatch.c23 atomic_t cpu_count; member
256 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_cb()
265 atomic_inc_return_release(&patch->cpu_count); in patch_text_cb()
267 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_cb()
284 .cpu_count = ATOMIC_INIT(0), in patch_text()
Dftrace.c136 atomic_t cpu_count; member
143 if (atomic_inc_return(&param->cpu_count) == num_online_cpus()) { in __ftrace_modify_code()
152 atomic_inc_return_release(&param->cpu_count); in __ftrace_modify_code()
154 while (atomic_read(&param->cpu_count) <= num_online_cpus()) in __ftrace_modify_code()
/linux-6.12.1/arch/csky/kernel/
Dftrace.c205 atomic_t cpu_count; member
212 if (atomic_inc_return(&param->cpu_count) == 1) { in __ftrace_modify_code()
214 atomic_inc(&param->cpu_count); in __ftrace_modify_code()
216 while (atomic_read(&param->cpu_count) <= num_online_cpus()) in __ftrace_modify_code()
/linux-6.12.1/scripts/
Dcheckkconfigsymbols.py18 from multiprocessing import Pool, cpu_count
276 pool = Pool(cpu_count(), init_worker)
283 for part in partition(kfiles, cpu_count()):
313 pool = Pool(cpu_count(), init_worker)
340 arglist = partition(source_files, cpu_count())
346 for part in partition(kconfig_files, cpu_count()):
/linux-6.12.1/lib/
Dobjpool.c51 int i, cpu_count = 0; in objpool_init_percpu_slots() local
64 if (cpu_count < (nr_objs % pool->nr_possible_cpus)) in objpool_init_percpu_slots()
66 cpu_count++; in objpool_init_percpu_slots()
/linux-6.12.1/tools/power/x86/intel-speed-select/
Disst-core-tpmi.c283 int ret, cpu_count; in tpmi_get_coremask_info() local
296 ctdp_level->core_cpumask, &cpu_count); in tpmi_get_coremask_info()
297 ctdp_level->cpu_count = cpu_count; in tpmi_get_coremask_info()
300 id->cpu, config_index, ctdp_level->cpu_count); in tpmi_get_coremask_info()
396 int ret, cpu_count; in _pbf_get_coremask_info() local
409 pbf_info->core_cpumask, &cpu_count); in _pbf_get_coremask_info()
412 id->cpu, config_index, cpu_count); in _pbf_get_coremask_info()
/linux-6.12.1/arch/csky/kernel/probes/
Dkprobes.c25 atomic_t cpu_count; member
33 if (atomic_inc_return(&param->cpu_count) == num_online_cpus()) { in patch_text_cb()
36 atomic_inc(&param->cpu_count); in patch_text_cb()
38 while (atomic_read(&param->cpu_count) <= num_online_cpus()) in patch_text_cb()
/linux-6.12.1/arch/parisc/kernel/
Dprocessor.c94 if (boot_cpu_data.cpu_count > 0) { in processor_probe()
103 cpuid = boot_cpu_data.cpu_count; in processor_probe()
152 boot_cpu_data.cpu_count--; in processor_probe()
162 boot_cpu_data.cpu_count++; in processor_probe()

12