Home
last modified time | relevance | path

Searched refs:nworks (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/kernel/
Dpadata.c42 int nworks; member
96 static int __init padata_work_alloc_mt(int nworks, void *data, in padata_work_alloc_mt() argument
103 for (i = 1; i < nworks; ++i) { in padata_work_alloc_mt()
460 done = (ps->nworks_fini == ps->nworks); in padata_mt_helper()
480 int nworks; in padata_do_multithreaded() local
486 nworks = max(job->size / job->min_chunk, 1ul); in padata_do_multithreaded()
487 nworks = min(nworks, job->max_threads); in padata_do_multithreaded()
489 if (nworks == 1) { in padata_do_multithreaded()
498 ps.nworks = padata_work_alloc_mt(nworks, &ps, &works); in padata_do_multithreaded()
507 ps.chunk_size = job->size / (ps.nworks * load_balance_factor); in padata_do_multithreaded()