linux/kernel/power
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
..
console.c [PATCH] swsusp: fix suspend when console is in VT_AUTO+KD_GRAPHICS mode 2007-03-16 19:25:05 -07:00
disk.c PM: Separate hibernation code from suspend code 2007-05-09 12:30:48 -07:00
Kconfig Merge branch 'linux-2.6' 2007-05-08 13:37:51 +10:00
main.c PM: Separate hibernation code from suspend code 2007-05-09 12:30:48 -07:00
Makefile [PATCH] Disable CPU hotplug during suspend 2006-09-26 08:48:59 -07:00
pm.c [PATCH] remove kernel/power/pm.c:pm_unregister_all() 2006-07-12 16:09:08 -07:00
power.h PM: Separate hibernation code from suspend code 2007-05-09 12:30:48 -07:00
poweroff.c WorkStruct: Pass the work_struct pointer instead of context data 2006-11-22 14:55:48 +00:00
process.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
snapshot.c swsusp: clean up printk 2007-05-09 12:30:48 -07:00
swap.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
swsusp.c swsusp: free more memory 2007-05-07 12:12:59 -07:00
user.c PM: Separate hibernation code from suspend code 2007-05-09 12:30:48 -07:00