Lines Matching refs:nthreads
1001 get_num_threads(const char *test, int *nthreads) in get_num_threads() argument
1008 *nthreads = test[len - 1] - '0'; in get_num_threads()
1009 *nthreads += (test[len - 2] - '0') * 10; in get_num_threads()
1011 if (WARN_ON(*nthreads < 0)) in get_num_threads()
1067 int nthreads; in test_init() local
1079 if (!get_num_threads(test->name, &nthreads)) in test_init()
1103 } else if (nthreads > num_online_cpus() - min_unused_cpus) { in test_init()
1104 nthreads = num_online_cpus() - min_unused_cpus; in test_init()
1106 test->name, nthreads); in test_init()
1110 if (nthreads) { in test_init()
1111 threads = kcalloc(nthreads + 1, sizeof(struct task_struct *), in test_init()
1116 threads[nthreads] = NULL; in test_init()
1117 for (i = 0; i < nthreads; ++i) { in test_init()