linux/drivers/acpi/sleep
Rafael J. Wysocki c697eecebc Suspend: Introduce begin() and end() callbacks
On ACPI systems the target state set by acpi_pm_set_target() is
reset by acpi_pm_finish(), but that need not be called if the
suspend fails.  All platforms that use the .set_target() global
suspend callback are affected by analogous issues.

For this reason, we need an additional global suspend callback that
will reset the target state regardless of whether or not the suspend
is successful.  Also, it is reasonable to rename the .set_target()
callback, since it will be used for a different purpose on ACPI
systems (due to ACPI 1.0x code ordering requirements).

Introduce the global suspend callback .end() to be executed at the
end of the suspend sequence and rename the .set_target() global
suspend callback to .begin().

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-02-01 18:30:56 -05:00
..
main.c Suspend: Introduce begin() and end() callbacks 2008-02-01 18:30:56 -05:00
Makefile ACPI: CONFIG_ACPI_SLEEP=n power off regression in 2.6.23-rc8 (NOT in rc7) 2007-09-25 17:58:52 -04:00
proc.c Fix /proc/acpi/alarm BCD alarm encodings 2007-10-25 15:08:03 -07:00
sleep.h ACPI: Hibernate erroneously disabled Suspend wakeup devices 2007-09-27 15:47:44 -04:00
wakeup.c ACPI: Hibernate erroneously disabled Suspend wakeup devices 2007-09-27 15:47:44 -04:00