Lines Matching refs:ncpus
103 unsigned ncpus; member
112 return ln->ncpus - rn->ncpus; in ncpus_cmp_func()
139 node_vectors[n].ncpus = UINT_MAX; in alloc_nodes_vectors()
143 unsigned ncpus; in alloc_nodes_vectors() local
146 ncpus = cpumask_weight(nmsk); in alloc_nodes_vectors()
148 if (!ncpus) in alloc_nodes_vectors()
150 remaining_ncpus += ncpus; in alloc_nodes_vectors()
151 node_vectors[n].ncpus = ncpus; in alloc_nodes_vectors()
228 unsigned nvectors, ncpus; in alloc_nodes_vectors() local
230 if (node_vectors[n].ncpus == UINT_MAX) in alloc_nodes_vectors()
235 ncpus = node_vectors[n].ncpus; in alloc_nodes_vectors()
237 numvecs * ncpus / remaining_ncpus); in alloc_nodes_vectors()
238 WARN_ON_ONCE(nvectors > ncpus); in alloc_nodes_vectors()
242 remaining_ncpus -= ncpus; in alloc_nodes_vectors()
292 unsigned int ncpus, v; in __irq_build_affinity_masks() local
300 ncpus = cpumask_weight(nmsk); in __irq_build_affinity_masks()
301 if (!ncpus) in __irq_build_affinity_masks()
304 WARN_ON_ONCE(nv->nvectors > ncpus); in __irq_build_affinity_masks()
307 extra_vecs = ncpus - nv->nvectors * (ncpus / nv->nvectors); in __irq_build_affinity_masks()
311 cpus_per_vec = ncpus / nv->nvectors; in __irq_build_affinity_masks()