Lines Matching refs:nthreads
275 static int __test_cycle(unsigned int nthreads) in __test_cycle() argument
278 unsigned int n, last = nthreads - 1; in __test_cycle()
281 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); in __test_cycle()
285 for (n = 0; n < nthreads; n++) { in __test_cycle()
304 for (n = 0; n < nthreads; n++) in __test_cycle()
310 for (n = 0; n < nthreads; n++) { in __test_cycle()
317 n, nthreads, cycle->result); in __test_cycle()
322 for (n = 0; n < nthreads; n++) in __test_cycle()
524 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument
536 for (n = 0; nthreads; n++) { in stress()
569 nthreads--; in stress()