/linux/arch/powerpc/kernel/ |
A D | paca.c | 63 size_t shared_lppaca_total_size = PAGE_ALIGN(nr_cpu_ids * LPPACA_SIZE); in alloc_shared_lppaca() 274 paca_nr_cpu_ids = nr_cpu_ids; in allocate_paca_ptrs() 276 paca_ptrs_size = sizeof(struct paca_struct *) * nr_cpu_ids; in allocate_paca_ptrs() 323 new_ptrs_size = sizeof(struct paca_struct *) * nr_cpu_ids; in free_unused_pacas() 328 paca_nr_cpu_ids = nr_cpu_ids; in free_unused_pacas() 341 paca_ptrs_size + paca_struct_size, nr_cpu_ids); in free_unused_pacas()
|
A D | setup-common.c | 327 if (cpumask_next(cpu_id, cpu_online_mask) >= nr_cpu_ids) in show_cpuinfo() 339 if ((*pos) < nr_cpu_ids) in c_start() 443 cpu_to_phys_id = memblock_alloc(nr_cpu_ids * sizeof(u32), in smp_setup_cpu_maps() 447 __func__, nr_cpu_ids * sizeof(u32), __alignof__(u32)); in smp_setup_cpu_maps() 474 for (j = 0; j < nthreads && cpu < nr_cpu_ids; j++) { in smp_setup_cpu_maps() 491 if (cpu >= nr_cpu_ids) { in smp_setup_cpu_maps() 527 if (maxcpus > nr_cpu_ids) { in smp_setup_cpu_maps() 531 maxcpus, nr_cpu_ids); in smp_setup_cpu_maps() 532 maxcpus = nr_cpu_ids; in smp_setup_cpu_maps() 825 memblock_free(cpu_to_phys_id, nr_cpu_ids * sizeof(u32)); in smp_setup_pacas()
|
/linux/include/linux/ |
A D | cpumask.h | 34 #define cpumask_pr_args(maskp) nr_cpu_ids, cpumask_bits(maskp) 37 #define nr_cpu_ids 1U macro 39 extern unsigned int nr_cpu_ids; 45 #define nr_cpumask_bits nr_cpu_ids 243 (cpu) < nr_cpu_ids;) 255 (cpu) < nr_cpu_ids;) 291 (cpu) < nr_cpu_ids;) 983 nr_cpu_ids); in cpumap_print_to_pagebuf() 1007 nr_cpu_ids, off, count) - 1; in cpumap_print_bitmask_to_buf() 1022 nr_cpu_ids, off, count) - 1; in cpumap_print_list_to_buf()
|
/linux/kernel/ |
A D | scftorture.c | 341 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one() 348 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one() 371 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one() 452 cpu = scfp->cpu % nr_cpu_ids; in scftorture_invoker() 462 WARN_ONCE(curcpu != scfp->cpu % nr_cpu_ids, in scftorture_invoker() 464 __func__, scfp->cpu, curcpu, nr_cpu_ids); in scftorture_invoker() 561 weight_resched1 = weight_resched == 0 ? 0 : 2 * nr_cpu_ids; in scf_torture_init() 562 weight_single1 = weight_single == 0 ? 0 : 2 * nr_cpu_ids; in scf_torture_init() 563 weight_single_rpc1 = weight_single_rpc == 0 ? 0 : 2 * nr_cpu_ids; in scf_torture_init() 564 weight_single_wait1 = weight_single_wait == 0 ? 0 : 2 * nr_cpu_ids; in scf_torture_init()
|
A D | smp.c | 351 if (WARN_ONCE(cpu < 0 || cpu >= nr_cpu_ids, "%s: cpu = %d\n", __func__, cpu)) in csd_lock_wait_toolong() 524 if ((unsigned)cpu >= nr_cpu_ids || !cpu_online(cpu)) { in generic_exec_single() 840 for (cpu = cpumask_first_and(nodemask, mask); cpu < nr_cpu_ids; in smp_call_function_any() 904 if (cpu < nr_cpu_ids) in smp_call_function_many_cond() 1053 if (get_option(&str, &nr_cpus) && nr_cpus > 0 && nr_cpus < nr_cpu_ids) in nrcpus() 1054 nr_cpu_ids = nr_cpus; in nrcpus() 1073 unsigned int nr_cpu_ids __read_mostly = NR_CPUS; 1074 EXPORT_SYMBOL(nr_cpu_ids); 1079 nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1; in setup_nr_cpu_ids() 1229 if (cpu >= nr_cpu_ids || !cpu_online(cpu)) in smp_call_on_cpu()
|
/linux/arch/arm/mach-spear/ |
A D | platsmp.c | 102 if (ncores > nr_cpu_ids) { in spear13xx_smp_init_cpus() 104 ncores, nr_cpu_ids); in spear13xx_smp_init_cpus() 105 ncores = nr_cpu_ids; in spear13xx_smp_init_cpus()
|
/linux/lib/ |
A D | cpumask.c | 255 if (next >= nr_cpu_ids) in cpumask_any_and_distribute() 258 if (next < nr_cpu_ids) in cpumask_any_and_distribute() 273 if (next >= nr_cpu_ids) in cpumask_any_distribute() 276 if (next < nr_cpu_ids) in cpumask_any_distribute()
|
/linux/arch/arm/mach-bcm/ |
A D | bcm63xx_smp.c | 64 if (ncores > nr_cpu_ids) { in scu_a9_enable() 66 ncores, nr_cpu_ids); in scu_a9_enable() 67 ncores = nr_cpu_ids; in scu_a9_enable()
|
/linux/arch/riscv/kernel/ |
A D | smpboot.c | 109 if (cpuid > nr_cpu_ids) in setup_smp() 111 cpuid, nr_cpu_ids); in setup_smp() 113 for (cpuid = 1; cpuid < nr_cpu_ids; cpuid++) { in setup_smp()
|
/linux/arch/arm/kernel/ |
A D | devtree.c | 130 if (WARN(cpuidx > nr_cpu_ids, "DT /cpu %u nodes greater than " in arm_dt_init_cpu_maps() 132 cpuidx, nr_cpu_ids)) { in arm_dt_init_cpu_maps() 133 cpuidx = nr_cpu_ids; in arm_dt_init_cpu_maps()
|
/linux/arch/x86/xen/ |
A D | smp_pv.c | 158 for (i = 0; i < nr_cpu_ids; i++) { in xen_fill_possible_map() 177 for (i = 0; i < nr_cpu_ids; i++) { in xen_filter_cpu_maps() 198 nr_cpu_ids = nr_cpu_ids - subtract; in xen_filter_cpu_maps() 258 for (cpu = nr_cpu_ids - 1; !cpu_possible(cpu); cpu--) in xen_pv_smp_prepare_cpus()
|
/linux/kernel/irq/ |
A D | cpuhotplug.c | 39 if (cpumask_any_but(m, cpu) < nr_cpu_ids && in irq_needs_fixup() 40 cpumask_any_and(m, cpu_online_mask) >= nr_cpu_ids) { in irq_needs_fixup() 113 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in migrate_one_irq()
|
A D | ipi.c | 70 if (next < nr_cpu_ids) in irq_reserve_ipi() 72 if (next < nr_cpu_ids) { in irq_reserve_ipi() 167 if (!data || !ipimask || cpu >= nr_cpu_ids) in ipi_get_hwirq() 197 if (cpu >= nr_cpu_ids) in ipi_send_verify()
|
A D | migration.c | 29 if (cpumask_any_and(desc->pending_mask, cpu_online_mask) >= nr_cpu_ids) { in irq_fixup_move_pending() 77 if (cpumask_any_and(desc->pending_mask, cpu_online_mask) < nr_cpu_ids) { in irq_move_masked_irq()
|
/linux/scripts/gdb/linux/ |
A D | timerlist.py | 152 nr_cpu_ids = 1 154 nr_cpu_ids = gdb.parse_and_eval("nr_cpu_ids") 158 num_bytes = (nr_cpu_ids + 7) / 8 172 extra = nr_cpu_ids % 8
|
/linux/arch/arm/mach-omap2/ |
A D | omap-smp.c | 278 if (ncores > nr_cpu_ids) { in omap4_smp_init_cpus() 280 ncores, nr_cpu_ids); in omap4_smp_init_cpus() 281 ncores = nr_cpu_ids; in omap4_smp_init_cpus()
|
/linux/drivers/perf/ |
A D | arm_pmu_platform.c | 88 cpu = nr_cpu_ids; in pmu_parse_irq_affinity() 124 if (nr_cpu_ids != 1 && !pmu_has_irq_affinity(dev->of_node)) in pmu_parse_irqs() 142 if (cpu >= nr_cpu_ids) in pmu_parse_irqs()
|
/linux/kernel/bpf/ |
A D | percpu_freelist.c | 72 if (cpu >= nr_cpu_ids) in ___pcpu_freelist_push_nmi() 142 if (cpu >= nr_cpu_ids) in ___pcpu_freelist_pop() 177 if (cpu >= nr_cpu_ids) in ___pcpu_freelist_pop_nmi()
|
/linux/arch/powerpc/include/asm/ |
A D | cputhreads.h | 56 if (cpu < nr_cpu_ids) in cpu_thread_mask_to_cores() 65 return nr_cpu_ids >> threads_shift; in cpu_nr_cores()
|
/linux/drivers/md/ |
A D | dm-ps-io-affinity.c | 80 if (cpu >= nr_cpu_ids) { in ioa_add_path() 82 cpu, nr_cpu_ids); in ioa_add_path() 119 s->path_map = kzalloc(nr_cpu_ids * sizeof(struct path_info *), in ioa_create()
|
/linux/drivers/base/ |
A D | cpu.c | 252 if (total_cpus && nr_cpu_ids < total_cpus) { in print_cpus_offline() 255 if (nr_cpu_ids == total_cpus-1) in print_cpus_offline() 256 len += sysfs_emit_at(buf, len, "%u", nr_cpu_ids); in print_cpus_offline() 259 nr_cpu_ids, total_cpus - 1); in print_cpus_offline() 393 if (cpu < nr_cpu_ids && cpu_possible(cpu)) in get_cpu_device()
|
/linux/arch/x86/kernel/ |
A D | tsc_sync.c | 101 if (next_cpu >= nr_cpu_ids) in tsc_sync_check_timer_fn() 209 refcpu = mask ? cpumask_any_but(mask, cpu) : nr_cpu_ids; in tsc_store_and_check_tsc_adjust() 211 if (refcpu >= nr_cpu_ids) { in tsc_store_and_check_tsc_adjust()
|
/linux/drivers/platform/x86/intel/speed_select_if/ |
A D | isst_if_common.c | 225 if (cmd->logical_cpu >= nr_cpu_ids) in isst_if_mbox_cmd_invalid() 299 if (bus_no < 0 || bus_no > 1 || cpu < 0 || cpu >= nr_cpu_ids || in _isst_if_get_pci_dev() 364 if (bus_no < 0 || bus_no > 1 || cpu < 0 || cpu >= nr_cpu_ids || in isst_if_get_pci_dev() 444 if (cpu_map->logical_cpu >= nr_cpu_ids || in isst_if_proc_phyid_req() 476 if (msr_cmd->logical_cpu >= nr_cpu_ids) in isst_if_msr_cmd_req()
|
/linux/kernel/sched/ |
A D | cpupri.c | 100 if (cpumask_any_and(&p->cpus_mask, vec->mask) >= nr_cpu_ids) in __cpupri_find() 290 cp->cpu_to_pri = kcalloc(nr_cpu_ids, sizeof(int), GFP_KERNEL); in cpupri_init()
|
/linux/arch/x86/events/intel/ |
A D | cstate.c | 344 if (cpu >= nr_cpu_ids) in cstate_pmu_event_init() 413 if (target < nr_cpu_ids) { in cstate_cpu_exit() 424 if (target < nr_cpu_ids) { in cstate_cpu_exit() 443 if (has_cstate_core && target >= nr_cpu_ids) in cstate_cpu_init() 452 if (has_cstate_pkg && target >= nr_cpu_ids) in cstate_cpu_init()
|