Lines Matching refs:nthreads
317 static int __test_cycle(unsigned int nthreads) in __test_cycle() argument
320 unsigned int n, last = nthreads - 1; in __test_cycle()
323 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); in __test_cycle()
327 for (n = 0; n < nthreads; n++) { in __test_cycle()
346 for (n = 0; n < nthreads; n++) in __test_cycle()
352 for (n = 0; n < nthreads; n++) { in __test_cycle()
359 n, nthreads, cycle->result); in __test_cycle()
364 for (n = 0; n < nthreads; n++) in __test_cycle()
573 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument
583 stress_array = kmalloc_array(nthreads, sizeof(*stress_array), in stress()
594 for (n = 0; nthreads; n++) { in stress()
625 nthreads--; in stress()