Lines Matching refs:nthreads
1017 long nthreads = (long)prev; in nthreads_gen_params() local
1019 if (nthreads < 0 || nthreads >= 32) in nthreads_gen_params()
1020 nthreads = 0; /* stop */ in nthreads_gen_params()
1021 else if (!nthreads) in nthreads_gen_params()
1022 nthreads = 2; /* initial value */ in nthreads_gen_params()
1023 else if (nthreads < 5) in nthreads_gen_params()
1024 nthreads++; in nthreads_gen_params()
1025 else if (nthreads == 5) in nthreads_gen_params()
1026 nthreads = 8; in nthreads_gen_params()
1028 nthreads *= 2; in nthreads_gen_params()
1042 nthreads = 0; in nthreads_gen_params()
1043 } else if (nthreads >= num_online_cpus() - min_unused_cpus) { in nthreads_gen_params()
1045 nthreads = -(num_online_cpus() - min_unused_cpus); in nthreads_gen_params()
1047 -nthreads, num_online_cpus()); in nthreads_gen_params()
1051 snprintf(desc, KUNIT_PARAM_DESC_SIZE, "threads=%ld", abs(nthreads)); in nthreads_gen_params()
1052 return (void *)nthreads; in nthreads_gen_params()
1136 int nthreads; in test_init() local
1156 nthreads = abs((long)test->param_value); in test_init()
1157 if (WARN_ON(!nthreads)) in test_init()
1160 threads = kcalloc(nthreads + 1, sizeof(struct task_struct *), GFP_KERNEL); in test_init()
1164 threads[nthreads] = NULL; in test_init()
1165 for (i = 0; i < nthreads; ++i) { in test_init()