Lines Matching defs:nthreads
145 * find_cpu_id_range - found a linear ranger of @nthreads free CPU ids.
146 * @nthreads : the number of threads (cpu ids)
153 static int find_cpu_id_range(unsigned int nthreads, int assigned_node,
164 for (cpu = 0; cpu < nthreads; cpu++)
193 cpumask_shift_left(*cpu_mask, *cpu_mask, nthreads);
213 int len, nthreads, node, cpu, assigned_node;
222 nthreads = len / sizeof(u32);
240 rc = find_cpu_id_range(nthreads, node, &cpu_mask);
246 rc = find_cpu_id_range(nthreads, NUMA_NO_NODE, &cpu_mask);
272 cpu, cpu + nthreads - 1);
296 int len, nthreads, i;
304 nthreads = len / sizeof(u32);
307 for (i = 0; i < nthreads; i++) {
329 int len, nthreads, i;
337 nthreads = len / sizeof(u32);
340 for (i = 0; i < nthreads; i++) {
385 int len, nthreads, i;
393 nthreads = len / sizeof(u32);
396 for (i = 0; i < nthreads; i++) {