]> git.hungrycats.org Git - linux/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)
committerChris Wright <chrisw@sous-sol.org>
Mon, 11 Dec 2006 19:32:40 +0000 (11:32 -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: Chris Wright <chrisw@sous-sol.org>
kernel/power/disk.c

index b1fb7866b0b31d65ccea5946aa22e9c2881e0322..f8f04edf9ae9fb49669e7db56c5f6b529bb1e4f1 100644 (file)
@@ -127,7 +127,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);