Lines Matching refs:cpu_groups
143 cpumask_var_t *cpu_groups = *pcpu_groups; in free_cpu_groups() local
146 free_cpumask_var(cpu_groups[i]); in free_cpu_groups()
147 kfree(cpu_groups); in free_cpu_groups()
153 cpumask_var_t tmp, *cpu_groups; in alloc_init_cpu_groups() local
158 cpu_groups = kcalloc(nb_available_cpus, sizeof(cpu_groups), in alloc_init_cpu_groups()
160 if (!cpu_groups) in alloc_init_cpu_groups()
169 if (!alloc_cpumask_var(&cpu_groups[num_groups], GFP_KERNEL)) { in alloc_init_cpu_groups()
170 free_cpu_groups(num_groups, &cpu_groups); in alloc_init_cpu_groups()
173 cpumask_copy(cpu_groups[num_groups++], cpu_group); in alloc_init_cpu_groups()
178 *pcpu_groups = cpu_groups; in alloc_init_cpu_groups()
186 cpumask_var_t offlined_cpus, *cpu_groups; in hotplug_tests() local
192 nb_cpu_group = alloc_init_cpu_groups(&cpu_groups); in hotplug_tests()
213 cpu_groups[i]); in hotplug_tests()
218 err += down_and_up_cpus(cpu_groups[i], offlined_cpus); in hotplug_tests()
223 free_cpu_groups(nb_cpu_group, &cpu_groups); in hotplug_tests()