return -ENOMEM;
}
for_each_possible_cpu(i) {
- if (!alloc_cpumask_var(&per_cpu_ptr(acpi_perf_data, i)
- ->shared_cpu_map, GFP_KERNEL)) {
+ if (!alloc_cpumask_var_node(
+ &per_cpu_ptr(acpi_perf_data, i)->shared_cpu_map,
+ GFP_KERNEL, cpu_to_node(i))) {
/* Freeing a NULL pointer is OK: alloc_percpu zeroes. */
free_acpi_perf_data();