Skip to contentSkip to conversation

PM: Fix swsusp debug mode testproc

PATCH In review Rafael J. Wysocki 2 participants 2 messages Dec 1, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM: Fix swsusp debug mode testproc

The 'testproc' swsusp debug mode thaws tasks twice in a row, which is _very_ confusing. Fix that.

---
 kernel/power/disk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/power/disk.c +1 -1
Index: linux-2.6.19-rc6-mm2/kernel/power/disk.c
===================================================================
@@ -153,7 +153,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);
#1 lore raw
Quoted 4 lines · Rafael J. Wysocki

The 'testproc' swsusp debug mode thaws tasks twice in a row, which is _very_ confusing. Fix that.

ACK.

Quoted 17 lines
---
 kernel/power/disk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.19-rc6-mm2/kernel/power/disk.c
===================================================================

kernel/power/disk.c +1 -1
@@ -153,7 +153,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);
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html