diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2006-03-23 03:00:04 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-23 07:38:08 -0800 |
commit | 02aaeb9b952f30b1ad6284d5d45be02030f679db (patch) | |
tree | 6577fcc544d34fbc9951be5dc1089ac227440573 /kernel/power/user.c | |
parent | 6e1819d615f24ce0726a7d0bd3dd0152d7b21654 (diff) | |
download | blackbird-op-linux-02aaeb9b952f30b1ad6284d5d45be02030f679db.tar.gz blackbird-op-linux-02aaeb9b952f30b1ad6284d5d45be02030f679db.zip |
[PATCH] swsusp: freeze user space processes first
Allow swsusp to freeze processes successfully under heavy load by freezing
userspace processes before kernel threads.
[Thanks to Nigel Cunningham <nigel@suspend2.net> for suggesting the
way to go.]
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 'kernel/power/user.c')
-rw-r--r-- | kernel/power/user.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c index 8cabc405ca10..a97406b86ef3 100644 --- a/kernel/power/user.c +++ b/kernel/power/user.c @@ -138,7 +138,6 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp, case SNAPSHOT_FREEZE: if (data->frozen) break; - sys_sync(); down(&pm_sem); pm_prepare_console(); disable_nonboot_cpus(); |