ACPI / sleep: move acpi_processor_sleep to sleep.c
authorSudeep Holla <Sudeep.Holla@arm.com>
Wed, 17 Feb 2016 12:03:23 +0000 (12:03 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 21 Feb 2016 23:53:56 +0000 (00:53 +0100)
commit504997cf96fabf67b4768b7a8ca1a1b622abd839
treeb28e6c830f8ff61044f6b0974847e5461ae08c91
parentdb62fda318a6b9082ee9d230be8b45e56b6545c0
ACPI / sleep: move acpi_processor_sleep to sleep.c

acpi_processor_sleep is neither related nor used by CPUIdle framework.
It's used in system suspend/resume path as a syscore operation. It makes
more sense to move it to acpi/sleep.c where all the S-state transition
(a.k.a. Linux system suspend/hiberate) related code are present.

Also make it depend on CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT so that
it's not compiled on architecture like ARM64 where S-states are not
yet defined in ACPI.

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