linux/drivers/acpi/sleep
Rafael J. Wysocki a3d25c275d PM: Separate hibernation code from suspend code
[ With Johannes Berg <johannes@sipsolutions.net> ]

Separate the hibernation (aka suspend to disk code) from the other suspend
code.  In particular:

 * Remove the definitions related to hibernation from include/linux/pm.h
 * Introduce struct hibernation_ops and a new hibernate() function to hibernate
   the system, defined in include/linux/suspend.h
 * Separate suspend code in kernel/power/main.c from hibernation-related code
   in kernel/power/disk.c and kernel/power/user.c (with the help of
   hibernation_ops)
 * Switch ACPI (the only user of pm_ops.pm_disk_mode) to hibernation_ops

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Greg KH <greg@kroah.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-09 12:30:48 -07:00
..
main.c PM: Separate hibernation code from suspend code 2007-05-09 12:30:48 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
poweroff.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
proc.c PM: Separate hibernation code from suspend code 2007-05-09 12:30:48 -07:00
sleep.h [ACPI] fix reboot upon suspend-to-disk 2005-12-15 13:28:14 -05:00
wakeup.c ACPI: update comment 2006-11-06 15:19:51 -05:00