[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:
committed by
Linus Torvalds
parent
dcbd4ec4c2
commit
5c339d4541
@@ -145,10 +145,10 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp,
|
|||||||
error = freeze_processes();
|
error = freeze_processes();
|
||||||
if (error) {
|
if (error) {
|
||||||
thaw_processes();
|
thaw_processes();
|
||||||
|
enable_nonboot_cpus();
|
||||||
error = -EBUSY;
|
error = -EBUSY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
enable_nonboot_cpus();
|
|
||||||
up(&pm_sem);
|
up(&pm_sem);
|
||||||
if (!error)
|
if (!error)
|
||||||
data->frozen = 1;
|
data->frozen = 1;
|
||||||
|
Reference in New Issue
Block a user