Lines Matching defs:n_threads
138 static int __init run_bench(int n_threads, const char *scope, const char *label)
152 ctxs = kzalloc_objs(*ctxs, n_threads);
156 tasks = kzalloc_objs(*tasks, n_threads);
162 total_items = (unsigned long)n_threads * wq_items;
171 for (i = 0; i < n_threads; i++) {
183 atomic_set(&threads_done, n_threads);
190 if (i >= n_threads)
226 for (i = 0; i < n_threads; i++)
234 for (i = 0; i < n_threads; i++) {
251 for (i = 0; i < n_threads; i++)
266 int n_threads = min(nr_threads ?: num_online_cpus(), num_online_cpus());
279 n_threads, wq_items);
282 run_bench(n_threads, bench_scopes[i], bench_scopes[i]);