Home
last modified time | relevance | path

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

/kernel/irq/
Daffinity.c103 unsigned ncpus; member
112 return ln->ncpus - rn->ncpus; in ncpus_cmp_func()
139 node_vectors[n].ncpus = UINT_MAX; in alloc_nodes_vectors()
143 unsigned ncpus; in alloc_nodes_vectors() local
146 ncpus = cpumask_weight(nmsk); in alloc_nodes_vectors()
148 if (!ncpus) in alloc_nodes_vectors()
150 remaining_ncpus += ncpus; in alloc_nodes_vectors()
151 node_vectors[n].ncpus = ncpus; in alloc_nodes_vectors()
228 unsigned nvectors, ncpus; in alloc_nodes_vectors() local
230 if (node_vectors[n].ncpus == UINT_MAX) in alloc_nodes_vectors()
[all …]
/kernel/locking/
Dtest-ww_mutex.c328 static int test_cycle(unsigned int ncpus) in test_cycle() argument
333 for (n = 2; n <= ncpus + 1; n++) { in test_cycle()
587 int ncpus = num_online_cpus(); in test_ww_mutex_init() local
610 ret = test_cycle(ncpus); in test_ww_mutex_init()
614 ret = stress(16, 2*ncpus, STRESS_INORDER); in test_ww_mutex_init()
618 ret = stress(16, 2*ncpus, STRESS_REORDER); in test_ww_mutex_init()
622 ret = stress(4095, hweight32(STRESS_ALL)*ncpus, STRESS_ALL); in test_ww_mutex_init()
/kernel/rcu/
Dtree_exp.h79 int ncpus = smp_load_acquire(&rcu_state.ncpus); /* Order vs. locking. */ in sync_exp_reset_tree_hotplug() local
84 if (likely(ncpus == rcu_state.ncpus_snap)) in sync_exp_reset_tree_hotplug()
86 rcu_state.ncpus_snap = ncpus; in sync_exp_reset_tree_hotplug()
Dtree.h310 int ncpus; /* # CPUs seen so far. */ member
Dtree.c4359 smp_store_release(&rcu_state.ncpus, rcu_state.ncpus + newcpu); /* ^^^ */ in rcu_cpu_starting()
4360 ASSERT_EXCLUSIVE_WRITER(rcu_state.ncpus); in rcu_cpu_starting()