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
..
2007-02-02 21:14:31 -05:00
2007-02-16 22:10:32 -05:00
2007-03-09 21:19:05 -05:00
2007-02-12 22:42:12 -05:00
2007-02-12 22:42:12 -05:00
2007-03-28 23:31:43 -04:00
2007-02-12 22:42:12 -05:00
2007-05-08 11:15:18 -07:00
2007-04-28 23:16:59 -04:00
2007-04-28 23:16:59 -04:00
2007-05-08 20:41:14 -07:00
2007-05-08 11:15:08 -07:00
2007-02-12 22:42:12 -05:00