Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Rafael J. Wysocki and committed by
Linus Torvalds
5c339d45 dcbd4ec4

+1 -1
+1 -1
kernel/power/user.c
··· 145 145 error = freeze_processes(); 146 146 if (error) { 147 147 thaw_processes(); 148 + enable_nonboot_cpus(); 148 149 error = -EBUSY; 149 150 } 150 151 } 151 - enable_nonboot_cpus(); 152 152 up(&pm_sem); 153 153 if (!error) 154 154 data->frozen = 1;