Home
last modified time | relevance | path

Searched refs:ncpus (Results 1 – 17 of 17) sorted by relevance

/arch/mips/kernel/
Dsync-r4k.c114 int ncpus; in synchronise_count_slave() local
137 ncpus = num_online_cpus(); in synchronise_count_slave()
140 while (atomic_read(&count_count_start) != ncpus) in synchronise_count_slave()
150 while (atomic_read(&count_count_stop) != ncpus) in synchronise_count_slave()
/arch/powerpc/platforms/powermac/
Dsmp.c266 int i, ncpus; in smp_psurge_probe() local
296 ncpus = 4; in smp_psurge_probe()
305 ncpus = 2; in smp_psurge_probe()
317 if (ncpus > NR_CPUS) in smp_psurge_probe()
318 ncpus = NR_CPUS; in smp_psurge_probe()
319 for (i = 1; i < ncpus ; ++i) { in smp_psurge_probe()
326 return ncpus; in smp_psurge_probe()
553 static void __init smp_core99_setup_i2c_hwsync(int ncpus) in smp_core99_setup_i2c_hwsync() argument
685 static void __init smp_core99_setup(int ncpus) in smp_core99_setup() argument
693 smp_core99_setup_i2c_hwsync(ncpus); in smp_core99_setup()
[all …]
/arch/powerpc/kernel/
Dcrash.c110 unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_soft_reset_check() local
113 while (atomic_read(&enter_on_soft_reset) != ncpus) in crash_soft_reset_check()
122 unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus() local
135 while ((cpus_weight(cpus_in_crash) < ncpus) && (--msecs > 0)) { in crash_kexec_prepare_cpus()
147 if (cpus_weight(cpus_in_crash) < ncpus) { in crash_kexec_prepare_cpus()
149 ncpus - cpus_weight(cpus_in_crash)); in crash_kexec_prepare_cpus()
153 while (cpus_weight(cpus_in_crash) < ncpus) in crash_kexec_prepare_cpus()
/arch/sparc/kernel/
Dsetup_32.c402 int i, ncpus, err; in topology_init() local
408 ncpus = 0; in topology_init()
409 while (!cpu_find_by_instance(ncpus, NULL, NULL)) in topology_init()
410 ncpus++; in topology_init()
411 ncpus_probed = ncpus; in topology_init()
Dds.c474 static int dr_cpu_size_response(int ncpus) in dr_cpu_size_response() argument
478 (sizeof(struct dr_cpu_resp_entry) * ncpus)); in dr_cpu_size_response()
482 u64 handle, int resp_len, int ncpus, in dr_cpu_init_response() argument
497 tag->num_records = ncpus; in dr_cpu_init_response()
506 BUG_ON(i != ncpus); in dr_cpu_init_response()
509 static void dr_cpu_mark(struct ds_data *resp, int cpu, int ncpus, in dr_cpu_mark() argument
519 for (i = 0; i < ncpus; i++) { in dr_cpu_mark()
534 int resp_len, ncpus, cpu; in dr_cpu_configure() local
537 ncpus = cpus_weight(*mask); in dr_cpu_configure()
538 resp_len = dr_cpu_size_response(ncpus); in dr_cpu_configure()
[all …]
Dsun4m_smp.c255 register int ncpus = SUN4M_NCPUS; in smp4m_cross_call() local
274 for(i = 0; i < ncpus; i++) { in smp4m_cross_call()
295 } while(++i < ncpus); in smp4m_cross_call()
303 } while(++i < ncpus); in smp4m_cross_call()
Dsmp_64.c1114 int ncpus = num_online_cpus(); in smp_capture() local
1123 while (atomic_read(&smp_capture_registry) != ncpus) in smp_capture()
/arch/x86/kernel/
Dvisws_quirks.c220 unsigned short ncpus = readw(phys_to_virt(CO_CPU_NUM_PHYS)); in visws_find_smp_config() local
222 if (ncpus > CO_CPU_MAX) { in visws_find_smp_config()
224 ncpus, mp); in visws_find_smp_config()
226 ncpus = CO_CPU_MAX; in visws_find_smp_config()
229 if (ncpus > setup_max_cpus) in visws_find_smp_config()
230 ncpus = setup_max_cpus; in visws_find_smp_config()
235 while (ncpus--) in visws_find_smp_config()
/arch/um/include/asm/
Dsmp.h18 extern int ncpus;
/arch/powerpc/platforms/chrp/
Dsetup.c601 int cpu, ncpus; in chrp_init2() local
606 ncpus = num_online_cpus(); in chrp_init2()
607 event_scan_interval = ncpus * interval; in chrp_init2()
608 for (cpu = 0; cpu < ncpus; ++cpu) { in chrp_init2()
/arch/um/kernel/
Dsmp.c113 for (i = 0; i < ncpus; ++i) in smp_prepare_cpus()
126 for (cpu = 1; cpu < ncpus; cpu++) { in smp_prepare_cpus()
Dum_arch.c110 int ncpus = 1; variable
166 if (!sscanf(line, "%d", &ncpus)) { in uml_ncpus_setup()
Dprocess.c45 for (i = 0; i < ncpus; i++) { in pid_to_processor_id()
/arch/um/include/shared/
Dkern_util.h14 extern int ncpus;
/arch/blackfin/include/asm/
Dipipe.h67 int ncpus; /* Number of CPUs on board */ member
/arch/blackfin/kernel/
Dipipe.c280 info->ncpus = num_online_cpus(); in ipipe_get_sysinfo()
/arch/powerpc/xmon/
Dxmon.c420 int ncpus = num_online_cpus(); in xmon_core() local
424 if (ncpus > 1) { in xmon_core()
428 if (cpus_weight(cpus_in_xmon) >= ncpus) in xmon_core()