From: Rafael J. Wysocki Date: Thu, 7 Dec 2006 04:34:47 +0000 (-0800) Subject: [PATCH] PM: Fix swsusp debug mode testproc X-Git-Tag: v2.6.20-rc1~15^2~14^2~274 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d87595ea628ea58415ba4638c553a8c2fbd90e2;p=platform%2Fkernel%2Flinux-exynos.git [PATCH] PM: Fix swsusp debug mode testproc The 'testproc' swsusp debug mode thaws tasks twice in a row, which is _very_ confusing. Fix that. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/power/disk.c b/kernel/power/disk.c index 126dda6..6180379 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c @@ -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);