mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ff4da2e262
commit
94c188d329
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue