Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61542
b: refs/heads/master
c: 10a1803
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Jul 19, 2007
1 parent 5a73c97 commit f1eba35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a634cc10164d1c229fbeca33923e6a0ed939e894
refs/heads/master: 10a1803d667e209914eaada9b95525252f23ec78
14 changes: 7 additions & 7 deletions trunk/kernel/power/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ int hibernation_snapshot(int platform_mode)
/* Free memory before shutting down devices. */
error = swsusp_shrink_memory();
if (error)
goto Finish;

error = platform_prepare(platform_mode);
if (error)
goto Finish;
return error;

suspend_console();
error = device_suspend(PMSG_FREEZE);
if (error)
goto Resume_console;

error = platform_prepare(platform_mode);
if (error)
goto Resume_devices;

Expand All @@ -159,8 +159,8 @@ int hibernation_snapshot(int platform_mode)
Resume_devices:
platform_finish(platform_mode);
device_resume();
Resume_console:
resume_console();
Finish:
return error;
}

Expand Down Expand Up @@ -191,8 +191,8 @@ int hibernation_restore(int platform_mode)
enable_nonboot_cpus();
}
platform_restore_cleanup(platform_mode);
Finish:
device_resume();
Finish:
resume_console();
pm_restore_console();
return error;
Expand Down

0 comments on commit f1eba35

Please sign in to comment.