[PATCH] swsusp: rework swsusp_suspend
commit0fbeb5a45dccd493c35a68a5548e6a9d9882a791
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 9 Nov 2005 05:34:41 +0000 (8 21:34 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:55:52 +0000 (9 07:55 -0800)
tree4cf24e2d08bd39d06cbe372376b4d996df8378f4
parented14b52701e6ef5a5aaf7bdb75932d5ea5dd7387
[PATCH] swsusp: rework swsusp_suspend

This patch makes only the functions in swsusp.c call functions in snapshot.c
and not both ways.   It also moves the check for available swap out of
swsusp_suspend() which is necessary for separating the swap-handling functions
in swsusp from the core code.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/power.h
kernel/power/snapshot.c
kernel/power/swsusp.c