]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] PM: Fix swsusp debug mode testproc
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 7 Dec 2006 04:34:47 +0000 (20:34 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:28 +0000 (08:39 -0800)
The 'testproc' swsusp debug mode thaws tasks twice in a row, which is _very_
confusing.  Fix that.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/disk.c

index 126dda61f45df1772e1d3a085e33cd11258680d8..6180379d5b84f369049a224c716275c6c18fb39a 100644 (file)
@@ -151,7 +151,7 @@ int pm_suspend_disk(void)
                return error;
 
        if (pm_disk_mode == PM_DISK_TESTPROC)
-               goto Thaw;
+               return 0;
 
        suspend_console();
        error = device_suspend(PMSG_FREEZE);