ACPI / Sleep: Rework enabling wakeup devices
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 1 Jul 2010 22:12:26 +0000 (00:12 +0200)
committerLen Brown <len.brown@intel.com>
Tue, 6 Jul 2010 22:29:47 +0000 (18:29 -0400)
commit25bed55753b8cf243406e8837990b55946c5278d
treeb0c5549e45036cbf93a90e8d7c66a6148c5a8c61
parente96c4b081df0991a57b244f68c3955a9ea00bd0a
ACPI / Sleep: Rework enabling wakeup devices

There is no reason why acpi_enable_wakeup_device() should be called
with interrupts disabled, because it doesn't access hardware.  Thus
it is possible to move it next to acpi_enable_wakeup_device_prep()
and make the ACPI suspend, hibernate and poweroff code more
straightforward.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sleep.c