]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
PM: Rework struct hibernation_ops
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 18 Oct 2007 10:04:42 +0000 (03:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:18 +0000 (14:37 -0700)
commit74f270af0c1ed5b9d4413784256959dcfe3593ce
tree5b74248167be086b0050a84f9ebe072bbb43fdb3
parentf242d9196fd1ef4e6bf0e50d2e7f32866fb145c2
PM: Rework struct hibernation_ops

During hibernation we also need to tell the ACPI core that we're going to put
the system into the S4 sleep state.  For this reason, an additional method in
'struct hibernation_ops' is needed, playing the role of set_target() in
'struct platform_suspend_operations'.  Moreover, the role of the .prepare()
method is now different, so it's better to introduce another method, that in
general may be different from .prepare(), that will be used to prepare the
platform for creating the hibernation image (.prepare() is used anyway to
notify the platform that we're going to enter the low power state after the
image has been saved).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/sleep/main.c
include/linux/suspend.h
kernel/power/disk.c