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)
commit0a3b15ac3cc3ddc791901e12bdc930b5fa11a30a
tree63de3276107f6aa99686cdcb472ed39a87edd4d9
parentf722406faae2d073cc1d01063d1123c35425939e
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