summaryrefslogtreecommitdiffstats
path: root/kernel/power/swsusp.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2005-10-31 00:00:01 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-31 02:37:15 +0100
commit0245b3e787dc3267a915e1f56419e7e9c197e148 (patch)
tree96a366f2fc732f42d4993dd177982e6b657d83aa /kernel/power/swsusp.c
parent[PATCH] swsusp: get rid of unnecessary wrapper function (diff)
downloadlinux-0245b3e787dc3267a915e1f56419e7e9c197e148.tar.xz
linux-0245b3e787dc3267a915e1f56419e7e9c197e148.zip
[PATCH] swsusp: two simplifications
The following patch simplifies the progress meter in disk.c:free_some_memory() and makes disk.c:pm_suspend_disk() call device_resume() explicitly in the suspend path. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r--kernel/power/swsusp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c
index ae8425b69b44..12db1d2ad61f 100644
--- a/kernel/power/swsusp.c
+++ b/kernel/power/swsusp.c
@@ -562,7 +562,7 @@ int enough_swap(unsigned nr_pages)
int swsusp_write(void)
{
int error;
- device_resume();
+
lock_swapdevices();
error = write_suspend_image();
/* This will unlock ignored swap devices since writing is finished */