Home
last modified time | relevance | path

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

/kernel/locking/
Dtest-ww_mutex.c368 static int test_cycle(unsigned int ncpus) in test_cycle() argument
373 for (n = 2; n <= ncpus + 1; n++) { in test_cycle()
627 int ncpus = num_online_cpus(); in test_ww_mutex_init() local
654 ret = test_cycle(ncpus); in test_ww_mutex_init()
658 ret = stress(16, 2*ncpus, STRESS_INORDER); in test_ww_mutex_init()
662 ret = stress(16, 2*ncpus, STRESS_REORDER); in test_ww_mutex_init()
666 ret = stress(4095, hweight32(STRESS_ALL)*ncpus, STRESS_ALL); in test_ww_mutex_init()
/kernel/rcu/
Dtree_exp.h81 int ncpus = smp_load_acquire(&rcu_state.ncpus); /* Order vs. locking. */ in sync_exp_reset_tree_hotplug() local
86 if (likely(ncpus == rcu_state.ncpus_snap)) in sync_exp_reset_tree_hotplug()
88 rcu_state.ncpus_snap = ncpus; in sync_exp_reset_tree_hotplug()
Dtree.h315 int ncpus; /* # CPUs seen so far. */ member
Dtree.c4369 smp_store_release(&rcu_state.ncpus, rcu_state.ncpus + newcpu); /* ^^^ */ in rcu_cpu_starting()
4370 ASSERT_EXCLUSIVE_WRITER(rcu_state.ncpus); in rcu_cpu_starting()