Lines Matching refs:nthreads
315 static int __test_cycle(unsigned int nthreads) in __test_cycle() argument
318 unsigned int n, last = nthreads - 1; in __test_cycle()
321 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); in __test_cycle()
325 for (n = 0; n < nthreads; n++) { in __test_cycle()
344 for (n = 0; n < nthreads; n++) in __test_cycle()
350 for (n = 0; n < nthreads; n++) { in __test_cycle()
357 n, nthreads, cycle->result); in __test_cycle()
362 for (n = 0; n < nthreads; n++) in __test_cycle()
560 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument
570 stress_array = kmalloc_array(nthreads, sizeof(*stress_array), in stress()
581 for (n = 0; nthreads; n++) { in stress()
612 nthreads--; in stress()