Searched refs:nworks (Results 1 – 1 of 1) sorted by relevance
42 int nworks; member104 static int __init padata_work_alloc_mt(int nworks, void *data, in padata_work_alloc_mt() argument111 for (i = 1; i < nworks; ++i) { in padata_work_alloc_mt()468 done = (ps->nworks_fini == ps->nworks); in padata_mt_helper()488 int nworks; in padata_do_multithreaded() local494 nworks = max(job->size / max(job->min_chunk, job->align), 1ul); in padata_do_multithreaded()495 nworks = min(nworks, job->max_threads); in padata_do_multithreaded()497 if (nworks == 1) { in padata_do_multithreaded()506 ps.nworks = padata_work_alloc_mt(nworks, &ps, &works); in padata_do_multithreaded()515 ps.chunk_size = job->size / (ps.nworks * load_balance_factor); in padata_do_multithreaded()