Lines Matching full: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()
171 if (!alloc_cpumask_var(&cpu_groups[num_groups], GFP_KERNEL)) { in alloc_init_cpu_groups()
173 free_cpu_groups(num_groups, &cpu_groups); in alloc_init_cpu_groups()
176 cpumask_copy(cpu_groups[num_groups++], cpu_group); in alloc_init_cpu_groups()
181 *pcpu_groups = cpu_groups; in alloc_init_cpu_groups()
189 cpumask_var_t offlined_cpus, *cpu_groups; in hotplug_tests() local
195 nb_cpu_group = alloc_init_cpu_groups(&cpu_groups); in hotplug_tests()
215 cpu_groups[i]); in hotplug_tests()
220 err += down_and_up_cpus(cpu_groups[i], offlined_cpus); in hotplug_tests()
225 free_cpu_groups(nb_cpu_group, &cpu_groups); in hotplug_tests()