]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PM: Move processor suspend/resume to syscore_ops
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 May 2013 19:54:37 +0000 (21:54 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 12 May 2013 12:03:14 +0000 (14:03 +0200)
commit65e11cf87437240d9f830ca9ed2488b6a9e58eeb
tree63de3276107f6aa99686cdcb472ed39a87edd4d9
parent9dd09e6de2d6786a50b589a77aeec22d46f3a4ab
ACPI / PM: Move processor suspend/resume to syscore_ops

The system suspend routine of the ACPI processor driver saves
the BUS_MASTER_RLD register and its resume routine restores it.
However, there can be only one such register in the system and it
really should be saved after non-boot CPUs have been offlined and
restored before they are put back online during resume.

For this reason, move the saving and restoration of BUS_MASTER_RLD
to syscore suspend and syscore resume, respectively, and drop the no
longer necessary suspend/resume callbacks from the ACPI processor
driver.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_driver.c
drivers/acpi/processor_idle.c
include/acpi/processor.h