Home
last modified time | relevance | path

Searched refs:nr_cpu_ids (Results 1 – 25 of 111) sorted by relevance

12345

/linux-2.6.39/kernel/
Dsmp.c330 if ((unsigned)cpu < nr_cpu_ids && cpu_online(cpu)) { in smp_call_function_single()
382 for (cpu = cpumask_first_and(nodemask, mask); cpu < nr_cpu_ids; in smp_call_function_any()
470 if (cpu >= nr_cpu_ids) in smp_call_function_many()
479 if (next_cpu >= nr_cpu_ids) { in smp_call_function_many()
641 if (nr_cpus > 0 && nr_cpus < nr_cpu_ids) in nrcpus()
642 nr_cpu_ids = nr_cpus; in nrcpus()
661 int nr_cpu_ids __read_mostly = NR_CPUS;
662 EXPORT_SYMBOL(nr_cpu_ids);
667 nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1; in setup_nr_cpu_ids()
Dsched_cpupri.c80 if (cpumask_any_and(&p->cpus_allowed, vec->mask) >= nr_cpu_ids) in cpupri_find()
94 if (cpumask_any(lowest_mask) >= nr_cpu_ids) in cpupri_find()
Dsched_fair.c3706 return nr_cpu_ids; in find_new_ilb()
3711 return nr_cpu_ids; in find_new_ilb()
3728 if (ilb_cpu >= nr_cpu_ids) { in nohz_balancer_kick()
3730 if (ilb_cpu >= nr_cpu_ids) in nohz_balancer_kick()
3771 nr_cpu_ids) != cpu) in select_nohz_load_balancer()
3780 atomic_cmpxchg(&nohz.first_pick_cpu, cpu, nr_cpu_ids); in select_nohz_load_balancer()
3782 atomic_cmpxchg(&nohz.second_pick_cpu, cpu, nr_cpu_ids); in select_nohz_load_balancer()
3784 if (atomic_read(&nohz.load_balancer) >= nr_cpu_ids) { in select_nohz_load_balancer()
3788 if (atomic_cmpxchg(&nohz.load_balancer, nr_cpu_ids, in select_nohz_load_balancer()
3789 cpu) != nr_cpu_ids) in select_nohz_load_balancer()
[all …]
/linux-2.6.39/arch/x86/mm/
Dtlb.c182 if (nr_cpu_ids > NUM_INVALIDATE_TLB_VECTORS) in flush_tlb_others_ipi()
201 if (nr_cpu_ids > NUM_INVALIDATE_TLB_VECTORS) in flush_tlb_others_ipi()
282 if (cpumask_any_but(mm_cpumask(mm), smp_processor_id()) < nr_cpu_ids) in flush_tlb_current_task()
297 if (cpumask_any_but(mm_cpumask(mm), smp_processor_id()) < nr_cpu_ids) in flush_tlb_mm()
316 if (cpumask_any_but(mm_cpumask(mm), smp_processor_id()) < nr_cpu_ids) in flush_tlb_page()
Dnuma.c55 if (cpu >= nr_cpu_ids || !cpu_possible(cpu)) { in numa_set_node()
110 for (i = 0; i < nr_cpu_ids; i++) { in numa_init_array()
/linux-2.6.39/drivers/base/
Dcpu.c194 if (total_cpus && nr_cpu_ids < total_cpus) { in print_cpus_offline()
198 if (nr_cpu_ids == total_cpus-1) in print_cpus_offline()
199 n += snprintf(&buf[n], len - n, "%d", nr_cpu_ids); in print_cpus_offline()
202 nr_cpu_ids, total_cpus-1); in print_cpus_offline()
243 if (cpu < nr_cpu_ids && cpu_possible(cpu)) in get_cpu_sysdev()
/linux-2.6.39/lib/
Dcpumask.c23 return min_t(int, nr_cpu_ids, in __next_cpu_nr()
24 find_next_bit(srcp->bits, nr_cpu_ids, n+1)); in __next_cpu_nr()
52 while ((n = cpumask_next(n, src1p)) < nr_cpu_ids) in cpumask_next_and()
Dproportions.c189 #define PROP_BATCH (8*(1+ilog2(nr_cpu_ids)))
241 if (val < (nr_cpu_ids * PROP_BATCH)) in prop_norm_percpu()
/linux-2.6.39/arch/tile/kernel/
Dproc.c67 if (cpumask_next(n, cpu_online_mask) < nr_cpu_ids) in show_cpuinfo()
75 return *pos < nr_cpu_ids ? cpu_to_ptr(*pos) : NULL; in c_start()
/linux-2.6.39/include/linux/
Dcpumask.h25 #define nr_cpu_ids 1 macro
27 extern int nr_cpu_ids;
33 #define nr_cpumask_bits nr_cpu_ids
205 (cpu) < nr_cpu_ids;)
217 (cpu) < nr_cpu_ids;)
236 (cpu) < nr_cpu_ids;)
804 (cpu) < nr_cpu_ids; )
Dseq_file.h97 return seq_bitmap(m, cpumask_bits(mask), nr_cpu_ids); in seq_cpumask()
111 return seq_bitmap_list(m, cpumask_bits(mask), nr_cpu_ids); in seq_cpumask_list()
Dbacking-dev.h46 #define BDI_STAT_BATCH (8*(1+ilog2(nr_cpu_ids)))
192 return nr_cpu_ids * BDI_STAT_BATCH; in bdi_stat_error()
/linux-2.6.39/arch/x86/kernel/
Dsmpboot.c647 pr_cont(" #%d%s", cpu, cpu == (nr_cpu_ids - 1) ? " Ok.\n" : ""); in announce_cpu()
908 if (def_to_bigsmp && nr_cpu_ids > 8) { in smp_sanity_check()
930 nr_cpu_ids = 8; in smp_sanity_check()
1010 c->cpu_index = nr_cpu_ids; in smp_cpu_index_default()
1189 if (possible > nr_cpu_ids) { in prefill_possible_map()
1192 possible, nr_cpu_ids); in prefill_possible_map()
1193 possible = nr_cpu_ids; in prefill_possible_map()
1214 nr_cpu_ids = possible; in prefill_possible_map()
Dtsc_sync.c117 if (cpu == (nr_cpu_ids-1) || system_state != SYSTEM_BOOTING) in check_tsc_sync_source()
/linux-2.6.39/arch/x86/kernel/apic/
Dbigsmp_32.c91 if (mps_cpu < nr_cpu_ids) in bigsmp_cpu_present_to_apicid()
113 if (cpu < nr_cpu_ids) in bigsmp_cpu_mask_to_apicid()
/linux-2.6.39/kernel/irq/
Dmigration.c46 < nr_cpu_ids)) in irq_move_masked_irq()
/linux-2.6.39/arch/tile/lib/
Datomic_32.c293 if (actual_cpu >= nr_cpu_ids) in __init_atomic_per_cpu()
303 BUG_ON(ATOMIC_HASH_SIZE < nr_cpu_ids); in __init_atomic_per_cpu()
/linux-2.6.39/arch/powerpc/kernel/
Dsetup-common.c318 if (cpumask_next(cpu_id, cpu_online_mask) >= nr_cpu_ids) in show_cpuinfo()
330 if ((*pos) < nr_cpu_ids) in c_start()
513 nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1; in smp_setup_cpu_maps()
/linux-2.6.39/arch/x86/xen/
Dsmp.c163 for (i = 0; i < nr_cpu_ids; i++) { in xen_fill_possible_map()
181 for (i = 0; i < nr_cpu_ids; i++) { in xen_filter_cpu_maps()
226 for (cpu = nr_cpu_ids - 1; !cpu_possible(cpu); cpu--) in xen_smp_prepare_cpus()
/linux-2.6.39/arch/ia64/sn/kernel/sn2/
Dsn2_smp.c464 if (*offset < nr_cpu_ids) in sn2_ptc_seq_start()
472 if (*offset < nr_cpu_ids) in sn2_ptc_seq_next()
494 if (cpu < nr_cpu_ids && cpu_online(cpu)) { in sn2_ptc_seq_show()
/linux-2.6.39/arch/x86/include/asm/
Dlguest.h18 #define TOTAL_SWITCHER_PAGES (SHARED_SWITCHER_PAGES + 2 * nr_cpu_ids)
/linux-2.6.39/arch/parisc/kernel/
Dirq.c310 while ((next_cpu < nr_cpu_ids) && in txn_alloc_addr()
315 if (next_cpu >= nr_cpu_ids) in txn_alloc_addr()
/linux-2.6.39/arch/s390/kernel/
Dsmp.c329 if (logical_cpu >= nr_cpu_ids) in smp_rescan_cpus_sigp()
341 if (logical_cpu >= nr_cpu_ids) in smp_rescan_cpus_sigp()
354 if (logical_cpu >= nr_cpu_ids) in smp_rescan_cpus_sclp()
376 if (logical_cpu >= nr_cpu_ids) in smp_rescan_cpus_sclp()
634 for (cpu = 1; cpu < pcpus && cpu < nr_cpu_ids; cpu++) in setup_possible_cpus()
/linux-2.6.39/arch/ia64/kernel/
Dirq.c115 >= nr_cpu_ids) { in migrate_irqs()
/linux-2.6.39/arch/cris/kernel/
Dsetup.c169 return *pos < nr_cpu_ids ? (void *)(int)(*pos + 1) : NULL; in c_start()

12345