Searched refs:n_threads (Results 1 – 3 of 3) sorted by relevance
| /linux/lib/ |
| H A D | test_workqueue.c | 138 static int __init run_bench(int n_threads, const char *scope, const char *label) in run_bench() argument 152 ctxs = kzalloc_objs(*ctxs, n_threads); in run_bench() 156 tasks = kzalloc_objs(*tasks, n_threads); in run_bench() 162 total_items = (unsigned long)n_threads * wq_items; in run_bench() 171 for (i = 0; i < n_threads; i++) { in run_bench() 184 atomic_set(&threads_done, n_threads); in run_bench() 191 if (i >= n_threads) in run_bench() 227 for (i = 0; i < n_threads; i++) in run_bench() 235 for (i = 0; i < n_threads; i++) { in run_bench() 252 for (i = 0; i < n_threads; i++) in run_bench() [all …]
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_core.c | 577 int t, c_threads = 0, n_threads = 13; in test_cgcore_proc_migration() local 579 pthread_t threads[n_threads]; in test_cgcore_proc_migration() 594 for (c_threads = 0; c_threads < n_threads; ++c_threads) { in test_cgcore_proc_migration() 600 if (cg_read_lc(dst, CG_THREADS_FILE) != n_threads + 1) in test_cgcore_proc_migration()
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s_hv.c | 3375 static void kvmppc_wait_for_nap(int n_threads) in kvmppc_start_thread() 3380 if (n_threads <= 1) in kvmppc_wait_for_nap() 3389 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap() 3392 if (i == n_threads) { in kvmppc_wait_for_nap() 3399 for (i = 1; i < n_threads; ++i) in kvmppc_wait_for_nap() 3521 static bool subcore_config_ok(int n_subcores, int n_threads) in init_core_info() 3528 return n_subcores <= 4 && n_threads == 1; in subcore_config_ok() 3542 return n_subcores * roundup_pow_of_two(n_threads) <= MAX_SMT_THREADS; in subcore_config_ok() 3556 int n_threads = vc->num_threads; in can_dynamic_split() 3566 if (n_threads < ci in can_dynamic_split() 3377 kvmppc_wait_for_nap(int n_threads) kvmppc_wait_for_nap() argument 3523 subcore_config_ok(int n_subcores,int n_threads) subcore_config_ok() argument 3558 int n_threads = vc->num_threads; can_dynamic_split() local [all...] |