Lines Matching defs:nthreads
1388 long nthreads = (long)prev;
1390 if (nthreads < 0 || nthreads >= 32)
1391 nthreads = 0; /* stop */
1392 else if (!nthreads)
1393 nthreads = 2; /* initial value */
1394 else if (nthreads < 5)
1395 nthreads++;
1396 else if (nthreads == 5)
1397 nthreads = 8;
1399 nthreads *= 2;
1414 nthreads = 0;
1415 } else if (nthreads >= num_online_cpus() - min_unused_cpus) {
1417 nthreads = -(num_online_cpus() - min_unused_cpus);
1419 -nthreads, num_online_cpus());
1423 snprintf(desc, KUNIT_PARAM_DESC_SIZE, "threads=%ld", abs(nthreads));
1424 return (void *)nthreads;
1514 int nthreads;
1537 nthreads = abs((long)test->param_value);
1538 if (WARN_ON(!nthreads))
1541 threads = kcalloc(nthreads + 1, sizeof(struct task_struct *), GFP_KERNEL);
1545 threads[nthreads] = NULL;
1546 for (i = 0; i < nthreads; ++i) {