Home
last modified time | relevance | path

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

/arch/x86/include/asm/trace/
Dhyperv.h16 __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/powerpc/kexec/
Dcrash.c108 volatile unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus() local
115 ncpus = num_present_cpus() - 1; in crash_kexec_prepare_cpus()
127 while ((atomic_read(&cpus_in_crash) < ncpus) && (--msecs > 0)) in crash_kexec_prepare_cpus()
132 if (atomic_read(&cpus_in_crash) >= ncpus) { in crash_kexec_prepare_cpus()
138 ncpus - atomic_read(&cpus_in_crash)); in crash_kexec_prepare_cpus()
169 while (atomic_read(&cpus_in_crash) < ncpus) in crash_kexec_prepare_cpus()
/arch/mips/kernel/
Dcrash.c59 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/platforms/powermac/
Dsmp.c271 int i, ncpus; in smp_psurge_probe() local
297 ncpus = 4; in smp_psurge_probe()
309 ncpus = 2; in smp_psurge_probe()
323 if (ncpus > NR_CPUS) in smp_psurge_probe()
324 ncpus = NR_CPUS; in smp_psurge_probe()
325 for (i = 1; i < ncpus ; ++i) in smp_psurge_probe()
562 static void __init smp_core99_setup_i2c_hwsync(int ncpus) in smp_core99_setup_i2c_hwsync() argument
694 static void __init smp_core99_setup(int ncpus) in smp_core99_setup() argument
702 smp_core99_setup_i2c_hwsync(ncpus); in smp_core99_setup()
750 for (i = 1; i < ncpus; ++i) in smp_core99_setup()
[all …]
/arch/sparc/kernel/
Dsetup_32.c391 int i, ncpus, err; in topology_init() local
397 ncpus = 0; in topology_init()
398 while (!cpu_find_by_instance(ncpus, NULL, NULL)) in topology_init()
399 ncpus++; in topology_init()
400 ncpus_probed = ncpus; in topology_init()
Dsun4m_smp.c177 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()
Dds.c479 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 …]
Dsmp_64.c1135 int ncpus = num_online_cpus(); in smp_capture() local
1144 while (atomic_read(&smp_capture_registry) != ncpus) in smp_capture()
/arch/xtensa/kernel/
Dsmp.c89 unsigned int ncpus = get_core_count(); in smp_init_cpus() local
92 pr_info("%s: Core Count = %d\n", __func__, ncpus); in smp_init_cpus()
95 if (ncpus > NR_CPUS) { in smp_init_cpus()
96 ncpus = NR_CPUS; in smp_init_cpus()
97 pr_info("%s: limiting core count by %d\n", __func__, ncpus); in smp_init_cpus()
100 for (i = 0; i < ncpus; ++i) in smp_init_cpus()
/arch/x86/kernel/
Dkvmclock.c204 unsigned long ncpus; in kvmclock_init_mem() local
212 ncpus = num_possible_cpus() - HVC_BOOT_ARRAY_SIZE; in kvmclock_init_mem()
213 order = get_order(ncpus * sizeof(*hvclock_mem)); in kvmclock_init_mem()
Dsmpboot.c1421 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/
Duv_time.c52 int ncpus; member
158 head->ncpus = uv_blade_nr_possible_cpus(bid); in uv_rtc_allocate_timers()
177 for (c = 0; c < head->ncpus; c++) { in uv_rtc_find_next_timer()
/arch/um/include/shared/
Dkern_util.h16 extern int ncpus;
/arch/um/kernel/
Dprocess.c53 for (i = 0; i < ncpus; i++) { in pid_to_processor_id()
Dum_arch.c127 int ncpus = 1; variable
/arch/powerpc/xmon/
Dxmon.c467 static bool wait_for_other_cpus(int ncpus) in wait_for_other_cpus() argument
473 if (cpumask_weight(&cpus_in_xmon) >= ncpus) in wait_for_other_cpus()
598 int ncpus = num_online_cpus(); in xmon_core() local
602 if (ncpus > 1) { in xmon_core()
610 if (TRAP(regs) != INTERRUPT_SYSTEM_RESET || !wait_for_other_cpus(ncpus)) in xmon_core()
613 wait_for_other_cpus(ncpus); in xmon_core()
/arch/powerpc/kernel/
Dfadump.c687 unsigned int ncpus = num_online_cpus() - 1; in crash_fadump() local
734 while ((atomic_read(&cpus_in_fadump) < ncpus) && (--msecs > 0)) in crash_fadump()