| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | paravirt.h | 164 int first_cpu, i; in vcpu_is_preempted() local 180 first_cpu = cpu_first_thread_sibling(raw_smp_processor_id()); in vcpu_is_preempted() 188 if (cpu_first_thread_sibling(cpu) == first_cpu) in vcpu_is_preempted() 198 first_cpu = cpu_first_thread_sibling(cpu); in vcpu_is_preempted() 199 for (i = first_cpu; i < first_cpu + threads_per_core; i++) { in vcpu_is_preempted()
|
| H A D | topology.h | 165 int i, first_cpu = cpu_first_thread_sibling(cpu); in topology_is_core_online() local 167 for (i = first_cpu; i < first_cpu + threads_per_core; ++i) { in topology_is_core_online()
|
| /linux-6.15/kernel/sched/ |
| H A D | isolation.c | 115 unsigned int first_cpu; in housekeeping_setup() local 136 first_cpu = cpumask_first_and(cpu_present_mask, housekeeping_staging); in housekeeping_setup() 137 if (first_cpu >= nr_cpu_ids || first_cpu >= setup_max_cpus) { in housekeeping_setup()
|
| /linux-6.15/drivers/cpufreq/ |
| H A D | speedstep-centrino.c | 422 unsigned int j, first_cpu; in centrino_target() local 434 first_cpu = 1; in centrino_target() 452 if (first_cpu) { in centrino_target() 461 if (first_cpu) { in centrino_target() 470 first_cpu = 0; in centrino_target()
|
| /linux-6.15/tools/virtio/ |
| H A D | vringh_test.c | 144 unsigned int first_cpu, last_cpu; in parallel_test() local 171 find_cpus(&first_cpu, &last_cpu); in parallel_test() 172 printf("Using CPUS %u and %u\n", first_cpu, last_cpu); in parallel_test() 194 CPU_SET(first_cpu, &cpu_set); in parallel_test() 196 errx(1, "Could not set affinity to cpu %u", first_cpu); in parallel_test() 318 CPU_SET(first_cpu, &cpu_set); in parallel_test() 320 err(1, "Could not set affinity to cpu %u", first_cpu); in parallel_test()
|
| /linux-6.15/drivers/irqchip/ |
| H A D | irq-bcm7038-l1.c | 203 unsigned int first_cpu = cpumask_any_and(dest, cpu_online_mask); in bcm7038_l1_set_affinity() local 211 intc->affinity[hw] = first_cpu; in bcm7038_l1_set_affinity() 213 __bcm7038_l1_unmask(d, first_cpu); in bcm7038_l1_set_affinity() 216 irq_data_update_effective_affinity(d, cpumask_of(first_cpu)); in bcm7038_l1_set_affinity()
|
| /linux-6.15/arch/x86/kernel/cpu/mtrr/ |
| H A D | mtrr.c | 616 int first_cpu; in mtrr_save_state() local 621 first_cpu = cpumask_first(cpu_online_mask); in mtrr_save_state() 622 smp_call_function_single(first_cpu, mtrr_save_fixed_ranges, NULL, 1); in mtrr_save_state()
|
| /linux-6.15/arch/sparc/kernel/ |
| H A D | smp_64.c | 647 u16 first_cpu = 0xffff; in hypervisor_xcall_deliver() local 727 if (first_cpu != cpu_list[0]) { in hypervisor_xcall_deliver() 728 first_cpu = cpu_list[0]; in hypervisor_xcall_deliver() 729 xc_rcvd = CPU_MONDO_COUNTER(first_cpu); in hypervisor_xcall_deliver() 737 target_cpu_busy = (xc_rcvd < CPU_MONDO_COUNTER(first_cpu)); in hypervisor_xcall_deliver() 738 xc_rcvd = CPU_MONDO_COUNTER(first_cpu); in hypervisor_xcall_deliver() 778 this_cpu, first_cpu, (tot_retries + retries), tot_cpus); in hypervisor_xcall_deliver()
|
| /linux-6.15/drivers/devfreq/ |
| H A D | governor.h | 67 unsigned int first_cpu; member
|
| H A D | governor_passive.c | 30 if (parent_cpu_data->first_cpu == cpumask_first(policy->related_cpus)) in get_parent_cpu_data() 311 parent_cpu_data->first_cpu = cpumask_first(policy->related_cpus); in cpufreq_passive_register_notifier()
|
| /linux-6.15/arch/powerpc/xmon/ |
| H A D | xmon.c | 1308 unsigned long cpu, first_cpu, last_cpu; in cpu_cmd() local 1339 last_cpu = first_cpu = NR_CPUS; in cpu_cmd() 1345 if (last_cpu != first_cpu) in cpu_cmd() 1347 last_cpu = first_cpu = cpu; in cpu_cmd() 1352 if (last_cpu != first_cpu) in cpu_cmd()
|
| /linux-6.15/drivers/scsi/lpfc/ |
| H A D | lpfc_attr.c | 5503 unsigned int cpu, first_cpu, numa_node = NUMA_NO_NODE; in lpfc_cpumask_irq_mode_init() local 5526 first_cpu = cpumask_first(sibling_mask); in lpfc_cpumask_irq_mode_init() 5527 if (first_cpu < nr_cpu_ids) in lpfc_cpumask_irq_mode_init() 5528 cpumask_set_cpu(first_cpu, aff_mask); in lpfc_cpumask_irq_mode_init()
|
| H A D | lpfc_init.c | 12435 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; in lpfc_cpu_affinity_check() local 12483 first_cpu = cpumask_first(cpu_present_mask); in lpfc_cpu_affinity_check() 12484 start_cpu = first_cpu; in lpfc_cpu_affinity_check() 12530 start_cpu = first_cpu; in lpfc_cpu_affinity_check()
|
| /linux-6.15/arch/powerpc/kvm/ |
| H A D | book3s_hv.c | 6569 int first_cpu = i * threads_per_core; in kvm_init_subcore_bitmap() local 6570 int node = cpu_to_node(first_cpu); in kvm_init_subcore_bitmap() 6573 if (paca_ptrs[first_cpu]->sibling_subcore_state) in kvm_init_subcore_bitmap() 6584 int cpu = first_cpu + j; in kvm_init_subcore_bitmap()
|