Lines Matching defs:nthreads
315 static int __test_cycle(unsigned int nthreads)
318 unsigned int n, last = nthreads - 1;
321 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL);
325 for (n = 0; n < nthreads; n++) {
344 for (n = 0; n < nthreads; n++)
350 for (n = 0; n < nthreads; n++) {
357 n, nthreads, cycle->result);
362 for (n = 0; n < nthreads; n++)
574 static int stress(int nlocks, int nthreads, unsigned int flags)
584 stress_array = kmalloc_array(nthreads, sizeof(*stress_array),
595 for (n = 0; nthreads; n++) {
626 nthreads--;