ACPI / idle: Implement ->enter_freeze callback routine
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Feb 2015 04:04:57 +0000 (05:04 +0100)
committerRafael J. Wysocki <rjw@rjwysocki.net>
Sun, 15 Feb 2015 18:40:10 +0000 (19:40 +0100)
commit5f5081852038d9a7b309190730bfb724b413235e
tree03993aaa509ee38a7a41832ec9c29c80a7eaa711
parent5fe2e52720e7a62da956d8aa81eadf6959c7acc8
ACPI / idle: Implement ->enter_freeze callback routine

Add an ->enter_freeze callback routine, acpi_idle_enter_freeze(), to
the ACPI cpuidle driver and point ->enter_freeze to it for all the
C2-type and C3-type states that don't need to fall back to C1
(which may be halt-induced and that will re-enable interrupts on
exit from idle, which ->enter_freeze cannot do).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
drivers/acpi/processor_idle.c