Home
last modified time | relevance | path

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

12

/Linux-v4.19/tools/testing/selftests/rcutorture/bin/
Dcpus2use.sh25 ncpus=`grep '^processor' /proc/cpuinfo | wc -l`
27 awk -v ncpus=$ncpus '{ print ncpus * ($7 + $NF) / 100 }'`
28 awk -v ncpus=$ncpus -v idlecpus=$idlecpus < /dev/null '
Dkvm-build.sh51 ncpus=`cpus2use.sh`
52 make O=$builddir -j$ncpus $TORTURE_KMAKE_ARG > $resdir/Make.out 2>&1
Dkvm.sh240 awk < $T/cfgcpu.sort > $T/cfgcpu.pack -v ncpus=$cpus '
327 -v ncpus=$cpus \
/Linux-v4.19/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,
50 __field(unsigned int, ncpus)
53 TP_fast_assign(__entry->ncpus = cpumask_weight(cpus);
57 __entry->ncpus, __entry->vector)
/Linux-v4.19/tools/perf/util/
Dcounts.c8 struct perf_counts *perf_counts__new(int ncpus, int nthreads) in perf_counts__new() argument
15 values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); in perf_counts__new()
45 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_counts() argument
47 evsel->counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_counts()
Dstat.c140 int ncpus, int nthreads) in perf_evsel__alloc_prev_raw_counts() argument
144 counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_prev_raw_counts()
159 int ncpus = perf_evsel__nr_cpus(evsel); in perf_evsel__alloc_stats() local
163 perf_evsel__alloc_counts(evsel, ncpus, nthreads) < 0 || in perf_evsel__alloc_stats()
164 (alloc_raw && perf_evsel__alloc_prev_raw_counts(evsel, ncpus, nthreads) < 0)) in perf_evsel__alloc_stats()
310 int ncpus = perf_evsel__nr_cpus(counter); in process_counter_maps() local
317 for (cpu = 0; cpu < ncpus; cpu++) { in process_counter_maps()
Dcounts.h32 struct perf_counts *perf_counts__new(int ncpus, int nthreads);
36 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus, int nthreads);
/Linux-v4.19/arch/powerpc/platforms/powermac/
Dsmp.c273 int i, ncpus; in smp_psurge_probe() local
303 ncpus = 4; in smp_psurge_probe()
315 ncpus = 2; in smp_psurge_probe()
329 if (ncpus > NR_CPUS) in smp_psurge_probe()
330 ncpus = NR_CPUS; in smp_psurge_probe()
331 for (i = 1; i < ncpus ; ++i) in smp_psurge_probe()
570 static void __init smp_core99_setup_i2c_hwsync(int ncpus) in smp_core99_setup_i2c_hwsync() argument
702 static void __init smp_core99_setup(int ncpus) in smp_core99_setup() argument
710 smp_core99_setup_i2c_hwsync(ncpus); in smp_core99_setup()
758 for (i = 1; i < ncpus; ++i) in smp_core99_setup()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Dcrash.c110 unsigned int ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus() local
117 ncpus = num_present_cpus() - 1; in crash_kexec_prepare_cpus()
129 while ((atomic_read(&cpus_in_crash) < ncpus) && (--msecs > 0)) in crash_kexec_prepare_cpus()
134 if (atomic_read(&cpus_in_crash) >= ncpus) { in crash_kexec_prepare_cpus()
140 ncpus - atomic_read(&cpus_in_crash)); in crash_kexec_prepare_cpus()
171 while (atomic_read(&cpus_in_crash) < ncpus) in crash_kexec_prepare_cpus()
/Linux-v4.19/kernel/irq/
Daffinity.c130 int ncpus, v, vecs_to_assign, vecs_per_node; in irq_build_affinity_masks() local
139 ncpus = cpumask_weight(nmsk); in irq_build_affinity_masks()
140 vecs_to_assign = min(vecs_per_node, ncpus); in irq_build_affinity_masks()
143 extra_vecs = ncpus - vecs_to_assign * (ncpus / vecs_to_assign); in irq_build_affinity_masks()
147 cpus_per_vec = ncpus / vecs_to_assign; in irq_build_affinity_masks()
/Linux-v4.19/arch/mips/kernel/
Dcrash.c54 unsigned int ncpus; in crash_kexec_prepare_cpus() local
59 ncpus = num_online_cpus() - 1;/* Excluding the panic cpu */ in crash_kexec_prepare_cpus()
70 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) { in crash_kexec_prepare_cpus()
/Linux-v4.19/drivers/clk/mvebu/
Dclk-cpu.c173 int ncpus = 0; in of_cpu_clk_setup() local
187 ncpus++; in of_cpu_clk_setup()
189 cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL); in of_cpu_clk_setup()
193 clks = kcalloc(ncpus, sizeof(*clks), GFP_KERNEL); in of_cpu_clk_setup()
238 while(ncpus--) in of_cpu_clk_setup()
239 kfree(cpuclk[ncpus].clk_name); in of_cpu_clk_setup()
/Linux-v4.19/arch/sparc/kernel/
Dsetup_32.c401 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()
Dds.c478 static int dr_cpu_size_response(int ncpus) in dr_cpu_size_response() argument
482 (sizeof(struct dr_cpu_resp_entry) * ncpus)); in dr_cpu_size_response()
486 u64 handle, int resp_len, int ncpus, in dr_cpu_init_response() argument
501 tag->num_records = ncpus; in dr_cpu_init_response()
510 BUG_ON(i != ncpus); in dr_cpu_init_response()
513 static void dr_cpu_mark(struct ds_data *resp, int cpu, int ncpus, in dr_cpu_mark() argument
523 for (i = 0; i < ncpus; i++) { in dr_cpu_mark()
536 int resp_len, ncpus, cpu; in dr_cpu_configure() local
539 ncpus = cpumask_weight(mask); in dr_cpu_configure()
540 resp_len = dr_cpu_size_response(ncpus); in dr_cpu_configure()
[all …]
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()
/Linux-v4.19/drivers/xen/
Dmcelog.c58 static uint32_t ncpus; variable
240 for (i = 0; i < ncpus; i++) in convert_log()
243 if (unlikely(i == ncpus)) { in convert_log()
368 ncpus = mc_op.u.mc_physcpuinfo.ncpus; in bind_virq_for_mce()
369 g_physinfo = kcalloc(ncpus, sizeof(struct mcinfo_logical_cpu), in bind_virq_for_mce()
/Linux-v4.19/kernel/locking/
Dtest-ww_mutex.c341 static int test_cycle(unsigned int ncpus) in test_cycle() argument
346 for (n = 2; n <= ncpus + 1; n++) { in test_cycle()
596 int ncpus = num_online_cpus(); in test_ww_mutex_init() local
619 ret = test_cycle(ncpus); in test_ww_mutex_init()
623 ret = stress(16, 2*ncpus, STRESS_INORDER); in test_ww_mutex_init()
627 ret = stress(16, 2*ncpus, STRESS_REORDER); in test_ww_mutex_init()
631 ret = stress(4095, hweight32(STRESS_ALL)*ncpus, STRESS_ALL); in test_ww_mutex_init()
/Linux-v4.19/arch/x86/kernel/
Dkvmclock.c243 unsigned long ncpus; in kvmclock_init_mem() local
251 ncpus = num_possible_cpus() - HVC_BOOT_ARRAY_SIZE; in kvmclock_init_mem()
252 order = get_order(ncpus * sizeof(*hvclock_mem)); in kvmclock_init_mem()
/Linux-v4.19/drivers/misc/sgi-gru/
Dgrukservices.c157 int ctxnum, ncpus; in gru_load_kernel_context() local
175 ncpus = uv_blade_nr_possible_cpus(blade_id); in gru_load_kernel_context()
177 GRU_NUM_KERNEL_CBR * ncpus + bs->bs_async_cbrs); in gru_load_kernel_context()
179 GRU_NUM_KERNEL_DSR_BYTES * ncpus + in gru_load_kernel_context()
375 int ncpus; in gru_lock_async_resource() local
378 ncpus = uv_blade_nr_possible_cpus(blade_id); in gru_lock_async_resource()
380 *cb = bs->kernel_cb + ncpus * GRU_HANDLE_STRIDE; in gru_lock_async_resource()
382 *dsr = bs->kernel_dsr + ncpus * GRU_NUM_KERNEL_DSR_BYTES; in gru_lock_async_resource()
/Linux-v4.19/tools/perf/bench/
Dfutex-wake.c45 static unsigned int ncpus, threads_starting, nthreads = 0; variable
143 nthreads = ncpus; in bench_futex_wake()
/Linux-v4.19/arch/x86/platform/uv/
Duv_time.c64 int ncpus; member
181 head->ncpus = uv_blade_nr_possible_cpus(bid); in uv_rtc_allocate_timers()
200 for (c = 0; c < head->ncpus; c++) { in uv_rtc_find_next_timer()
/Linux-v4.19/arch/xtensa/kernel/
Dsmp.c93 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 for (i = 0; i < ncpus; ++i) in smp_init_cpus()
/Linux-v4.19/kernel/rcu/
Dtree_exp.h87 int ncpus = smp_load_acquire(&rsp->ncpus); /* Order against locking. */ in sync_exp_reset_tree_hotplug() local
92 if (likely(ncpus == rsp->ncpus_snap)) in sync_exp_reset_tree_hotplug()
94 rsp->ncpus_snap = ncpus; in sync_exp_reset_tree_hotplug()
/Linux-v4.19/arch/um/include/shared/
Dkern_util.h16 extern int ncpus;
/Linux-v4.19/drivers/block/aoe/
Daoecmd.c45 static int ncpus; variable
1214 actual_id = f->t->d->aoeminor % ncpus; in ktio()
1287 id = f->t->d->aoeminor % ncpus; in ktcomplete()
1647 for (i = 0; i < ncpus; i++) { in aoe_flush_iocq()
1697 ncpus = num_online_cpus(); in aoecmd_init()
1699 iocq = kcalloc(ncpus, sizeof(struct iocq_ktio), GFP_KERNEL); in aoecmd_init()
1703 kts = kcalloc(ncpus, sizeof(struct ktstate), GFP_KERNEL); in aoecmd_init()
1709 ktiowq = kcalloc(ncpus, sizeof(wait_queue_head_t), GFP_KERNEL); in aoecmd_init()
1717 for (i = 0; i < ncpus; i++) { in aoecmd_init()
1750 for (i = 0; i < ncpus; i++) in aoecmd_exit()

12