ACPI: Implement the set_target() callback from pm_ops
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 17 Jul 2007 20:40:06 +0000 (22:40 +0200)
committerLen Brown <len.brown@intel.com>
Sun, 22 Jul 2007 08:17:38 +0000 (04:17 -0400)
commite9b3aba887f47f9cd64de20fec9c333a932b70dc
tree574390c4b26021d0b3c1b83fbca4545946d0452e
parentd7fff6f4d1ed1bc31577df887fefcb1541923367
ACPI: Implement the set_target() callback from pm_ops

In the future some drivers may need to use ACPI to determine the low power
states in which to place their devices, but to provide the drivers with this
information the ACPI core needs to know what sleep state the system is going to
enter.  Namely, the device's state should not be too high power for given system
sleep state and, if the device is supposed to be able to wake up the system, its
state should not be too low power for the wake up to be possible).  For this
purpose, the ACPI core needs to implement the set_target() method in 'struct
pm_ops' and store the target system sleep state passed by the PM core in a
variable.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sleep/main.c