Lines Matching refs:ngroups
104 unsigned ngroups; member
230 unsigned ngroups, ncpus; in alloc_nodes_groups() local
238 ngroups = max_t(unsigned, 1, in alloc_nodes_groups()
240 WARN_ON_ONCE(ngroups > ncpus); in alloc_nodes_groups()
242 node_groups[n].ngroups = ngroups; in alloc_nodes_groups()
245 numgrps -= ngroups; in alloc_nodes_groups()
293 if (nv->ngroups == UINT_MAX) in __group_cpus_evenly()
302 WARN_ON_ONCE(nv->ngroups > ncpus); in __group_cpus_evenly()
305 extra_grps = ncpus - nv->ngroups * (ncpus / nv->ngroups); in __group_cpus_evenly()
308 for (v = 0; v < nv->ngroups; v++, curgrp++) { in __group_cpus_evenly()
309 cpus_per_grp = ncpus / nv->ngroups; in __group_cpus_evenly()
326 done += nv->ngroups; in __group_cpus_evenly()