Commit e0343679 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] synchronize_kernel for idle-loop unload (Zwane Mwaikambo)

http://bugzilla.kernel.org/show_bug.cgi?id=1716
parent 94bd188d
......@@ -2417,8 +2417,10 @@ acpi_processor_remove (
pr = (struct acpi_processor *) acpi_driver_data(device);
/* Unregister the idle handler when processor #0 is removed. */
if (pr->id == 0)
if (pr->id == 0) {
pm_idle = pm_idle_save;
synchronize_kernel();
}
status = acpi_remove_notify_handler(pr->handle, ACPI_DEVICE_NOTIFY,
acpi_processor_notify);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment