diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2006-03-23 06:00:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-23 10:38:08 -0500 |
commit | 94c188d32996beac00426740974310e32f162c14 (patch) | |
tree | 3397f055957e233554cdd17c645ecc8f7ea7c074 /kernel/power/user.c | |
parent | ff4da2e262d2509fe1bacff70dd00934be569c66 (diff) |
[PATCH] swsusp: let userland tools switch console on suspend
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>
Diffstat (limited to 'kernel/power/user.c')
-rw-r--r-- | kernel/power/user.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c index a97406b86ef3..bbd4842104aa 100644 --- a/kernel/power/user.c +++ b/kernel/power/user.c | |||
@@ -139,12 +139,10 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp, | |||
139 | if (data->frozen) | 139 | if (data->frozen) |
140 | break; | 140 | break; |
141 | down(&pm_sem); | 141 | down(&pm_sem); |
142 | pm_prepare_console(); | ||
143 | disable_nonboot_cpus(); | 142 | disable_nonboot_cpus(); |
144 | if (freeze_processes()) { | 143 | if (freeze_processes()) { |
145 | thaw_processes(); | 144 | thaw_processes(); |
146 | enable_nonboot_cpus(); | 145 | enable_nonboot_cpus(); |
147 | pm_restore_console(); | ||
148 | error = -EBUSY; | 146 | error = -EBUSY; |
149 | } | 147 | } |
150 | up(&pm_sem); | 148 | up(&pm_sem); |
@@ -158,7 +156,6 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp, | |||
158 | down(&pm_sem); | 156 | down(&pm_sem); |
159 | thaw_processes(); | 157 | thaw_processes(); |
160 | enable_nonboot_cpus(); | 158 | enable_nonboot_cpus(); |
161 | pm_restore_console(); | ||
162 | up(&pm_sem); | 159 | up(&pm_sem); |
163 | data->frozen = 0; | 160 | data->frozen = 0; |
164 | break; | 161 | break; |