Lines Matching refs:nthreads
152 static int find_cpu_id_range(unsigned int nthreads, int assigned_node, in find_cpu_id_range() argument
163 for (cpu = 0; cpu < nthreads; cpu++) in find_cpu_id_range()
192 cpumask_shift_left(*cpu_mask, *cpu_mask, nthreads); in find_cpu_id_range()
212 int len, nthreads, node, cpu, assigned_node; in pseries_add_processor() local
221 nthreads = len / sizeof(u32); in pseries_add_processor()
239 rc = find_cpu_id_range(nthreads, node, &cpu_mask); in pseries_add_processor()
245 rc = find_cpu_id_range(nthreads, NUMA_NO_NODE, &cpu_mask); in pseries_add_processor()
271 cpu, cpu + nthreads - 1); in pseries_add_processor()
295 int len, nthreads, i; in pseries_remove_processor() local
303 nthreads = len / sizeof(u32); in pseries_remove_processor()
306 for (i = 0; i < nthreads; i++) { in pseries_remove_processor()
328 int len, nthreads, i; in dlpar_offline_cpu() local
336 nthreads = len / sizeof(u32); in dlpar_offline_cpu()
339 for (i = 0; i < nthreads; i++) { in dlpar_offline_cpu()
384 int len, nthreads, i; in dlpar_online_cpu() local
392 nthreads = len / sizeof(u32); in dlpar_online_cpu()
395 for (i = 0; i < nthreads; i++) { in dlpar_online_cpu()