Lines Matching refs:n_threads
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()
267 int n_threads = min(nr_threads ?: num_online_cpus(), num_online_cpus()); in test_workqueue_init() local
280 n_threads, wq_items); in test_workqueue_init()
283 run_bench(n_threads, bench_scopes[i], bench_scopes[i]); in test_workqueue_init()