public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -fix] swsusp: Make userland suspend work on SMP again
@ 2006-10-04 20:26 Rafael J. Wysocki
  2006-10-04 20:58 ` Pavel Machek
  2006-10-05 23:40 ` Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2006-10-04 20:26 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML, Pavel Machek

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>
---
---
 kernel/power/user.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.18-mm3/kernel/power/user.c
===================================================================
--- linux-2.6.18-mm3.orig/kernel/power/user.c
+++ linux-2.6.18-mm3/kernel/power/user.c
@@ -149,10 +149,10 @@ static int snapshot_ioctl(struct inode *
 			error = freeze_processes();
 			if (error) {
 				thaw_processes();
+				enable_nonboot_cpus();
 				error = -EBUSY;
 			}
 		}
-		enable_nonboot_cpus();
 		up(&pm_sem);
 		if (!error)
 			data->frozen = 1;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-06  8:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-04 20:26 [PATCH -fix] swsusp: Make userland suspend work on SMP again Rafael J. Wysocki
2006-10-04 20:58 ` Pavel Machek
2006-10-05 23:40 ` Andrew Morton
2006-10-06  8:52   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox