|
@@ -451,7 +451,6 @@ static void acpi_processor_remove(struct acpi_device *device)
|
|
/* Clean up. */
|
|
/* Clean up. */
|
|
per_cpu(processor_device_array, pr->id) = NULL;
|
|
per_cpu(processor_device_array, pr->id) = NULL;
|
|
per_cpu(processors, pr->id) = NULL;
|
|
per_cpu(processors, pr->id) = NULL;
|
|
- try_offline_node(cpu_to_node(pr->id));
|
|
|
|
|
|
|
|
/* Remove the CPU. */
|
|
/* Remove the CPU. */
|
|
get_online_cpus();
|
|
get_online_cpus();
|
|
@@ -459,6 +458,8 @@ static void acpi_processor_remove(struct acpi_device *device)
|
|
acpi_unmap_lsapic(pr->id);
|
|
acpi_unmap_lsapic(pr->id);
|
|
put_online_cpus();
|
|
put_online_cpus();
|
|
|
|
|
|
|
|
+ try_offline_node(cpu_to_node(pr->id));
|
|
|
|
+
|
|
out:
|
|
out:
|
|
free_cpumask_var(pr->throttling.shared_cpu_map);
|
|
free_cpumask_var(pr->throttling.shared_cpu_map);
|
|
kfree(pr);
|
|
kfree(pr);
|