/arch/x86/include/asm/trace/ |
D | hyperv.h | 16 __field(unsigned int, ncpus) 21 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus); 27 __entry->ncpus, __entry->mm, 64 __field(unsigned int, ncpus) 67 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus); 71 __entry->ncpus, __entry->vector)
|
/arch/mips/kernel/ |
D | crash.c | 59 unsigned int ncpus; in crash_kexec_prepare_cpus() local 64 ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus() 75 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) { in crash_kexec_prepare_cpus()
|
/arch/powerpc/kernel/ |
D | crash.c | 107 unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus() local 114 ncpus = num_present_cpus() - 1; in crash_kexec_prepare_cpus() 126 while ((atomic_read(&cpus_in_crash) < ncpus) && (--msecs > 0)) in crash_kexec_prepare_cpus() 131 if (atomic_read(&cpus_in_crash) >= ncpus) { in crash_kexec_prepare_cpus() 137 ncpus - atomic_read(&cpus_in_crash)); in crash_kexec_prepare_cpus() 168 while (atomic_read(&cpus_in_crash) < ncpus) in crash_kexec_prepare_cpus()
|
/arch/powerpc/platforms/powermac/ |
D | smp.c | 269 int i, ncpus; in smp_psurge_probe() local 299 ncpus = 4; in smp_psurge_probe() 311 ncpus = 2; in smp_psurge_probe() 325 if (ncpus > NR_CPUS) in smp_psurge_probe() 326 ncpus = NR_CPUS; in smp_psurge_probe() 327 for (i = 1; i < ncpus ; ++i) in smp_psurge_probe() 566 static void __init smp_core99_setup_i2c_hwsync(int ncpus) in smp_core99_setup_i2c_hwsync() argument 698 static void __init smp_core99_setup(int ncpus) in smp_core99_setup() argument 706 smp_core99_setup_i2c_hwsync(ncpus); in smp_core99_setup() 754 for (i = 1; i < ncpus; ++i) in smp_core99_setup() [all …]
|
/arch/sparc/kernel/ |
D | setup_32.c | 401 int i, ncpus, err; in topology_init() local 407 ncpus = 0; in topology_init() 408 while (!cpu_find_by_instance(ncpus, NULL, NULL)) in topology_init() 409 ncpus++; in topology_init() 410 ncpus_probed = ncpus; in topology_init()
|
D | sun4m_smp.c | 177 register int ncpus = SUN4M_NCPUS; in sun4m_cross_call() local 196 for (i = 0; i < ncpus; i++) { in sun4m_cross_call() 217 } while (++i < ncpus); in sun4m_cross_call() 225 } while (++i < ncpus); in sun4m_cross_call()
|
D | ds.c | 479 static int dr_cpu_size_response(int ncpus) in dr_cpu_size_response() argument 483 (sizeof(struct dr_cpu_resp_entry) * ncpus)); in dr_cpu_size_response() 487 u64 handle, int resp_len, int ncpus, in dr_cpu_init_response() argument 502 tag->num_records = ncpus; in dr_cpu_init_response() 511 BUG_ON(i != ncpus); in dr_cpu_init_response() 514 static void dr_cpu_mark(struct ds_data *resp, int cpu, int ncpus, in dr_cpu_mark() argument 524 for (i = 0; i < ncpus; i++) { in dr_cpu_mark() 537 int resp_len, ncpus, cpu; in dr_cpu_configure() local 540 ncpus = cpumask_weight(mask); in dr_cpu_configure() 541 resp_len = dr_cpu_size_response(ncpus); in dr_cpu_configure() [all …]
|
D | smp_64.c | 1138 int ncpus = num_online_cpus(); in smp_capture() local 1147 while (atomic_read(&smp_capture_registry) != ncpus) in smp_capture()
|
/arch/xtensa/kernel/ |
D | smp.c | 93 unsigned int ncpus = get_core_count(); in smp_init_cpus() local 96 pr_info("%s: Core Count = %d\n", __func__, ncpus); in smp_init_cpus() 99 if (ncpus > NR_CPUS) { in smp_init_cpus() 100 ncpus = NR_CPUS; in smp_init_cpus() 101 pr_info("%s: limiting core count by %d\n", __func__, ncpus); in smp_init_cpus() 104 for (i = 0; i < ncpus; ++i) in smp_init_cpus()
|
/arch/x86/kernel/ |
D | kvmclock.c | 198 unsigned long ncpus; in kvmclock_init_mem() local 206 ncpus = num_possible_cpus() - HVC_BOOT_ARRAY_SIZE; in kvmclock_init_mem() 207 order = get_order(ncpus * sizeof(*hvclock_mem)); in kvmclock_init_mem()
|
D | smpboot.c | 1421 int ncpus; in calculate_max_logical_packages() local 1427 ncpus = cpu_data(0).booted_cores * topology_max_smt_threads(); in calculate_max_logical_packages() 1428 __max_logical_packages = DIV_ROUND_UP(total_cpus, ncpus); in calculate_max_logical_packages()
|
/arch/x86/platform/uv/ |
D | uv_time.c | 51 int ncpus; member 168 head->ncpus = uv_blade_nr_possible_cpus(bid); in uv_rtc_allocate_timers() 187 for (c = 0; c < head->ncpus; c++) { in uv_rtc_find_next_timer()
|
/arch/um/include/shared/ |
D | kern_util.h | 16 extern int ncpus;
|
/arch/um/kernel/ |
D | um_arch.c | 110 int ncpus = 1; variable
|
D | process.c | 54 for (i = 0; i < ncpus; i++) { in pid_to_processor_id()
|
/arch/powerpc/xmon/ |
D | xmon.c | 458 static bool wait_for_other_cpus(int ncpus) in wait_for_other_cpus() argument 464 if (cpumask_weight(&cpus_in_xmon) >= ncpus) in wait_for_other_cpus() 592 int ncpus = num_online_cpus(); in xmon_core() local 596 if (ncpus > 1) { in xmon_core() 604 if (TRAP(regs) != 0x100 || !wait_for_other_cpus(ncpus)) in xmon_core() 607 wait_for_other_cpus(ncpus); in xmon_core()
|