Skip to content

Commit

Permalink
[PATCH] swsusp: let userland tools switch console on suspend
Browse files Browse the repository at this point in the history
Remove the console-switching code from the suspend part of the swsusp userland
interface and let the userland tools switch the console.

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>
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Mar 23, 2006
1 parent ff4da2e commit 94c188d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kernel/power/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,10 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp,
if (data->frozen)
break;
down(&pm_sem);
pm_prepare_console();
disable_nonboot_cpus();
if (freeze_processes()) {
thaw_processes();
enable_nonboot_cpus();
pm_restore_console();
error = -EBUSY;
}
up(&pm_sem);
Expand All @@ -158,7 +156,6 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp,
down(&pm_sem);
thaw_processes();
enable_nonboot_cpus();
pm_restore_console();
up(&pm_sem);
data->frozen = 0;
break;
Expand Down

0 comments on commit 94c188d

Please sign in to comment.