[PATCH] swsusp: Make userland suspend work on SMP again
Unfortunately one of the recent changes in swsusp has broken the userland suspend on SMP. Fix it. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Родитель
dcbd4ec4c2
Коммит
5c339d4541
|
@ -145,10 +145,10 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp,
|
|||
error = freeze_processes();
|
||||
if (error) {
|
||||
thaw_processes();
|
||||
enable_nonboot_cpus();
|
||||
error = -EBUSY;
|
||||
}
|
||||
}
|
||||
enable_nonboot_cpus();
|
||||
up(&pm_sem);
|
||||
if (!error)
|
||||
data->frozen = 1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче