Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11786
b: refs/heads/master
c: 0245b3e
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Oct 31, 2005
1 parent 1abb999 commit cadcafa
Show file tree
Hide file tree
Showing 3 changed files with 4 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: 2e32a43efdc8175579cc91e8b620ac331376a437
refs/heads/master: 0245b3e787dc3267a915e1f56419e7e9c197e148
8 changes: 2 additions & 6 deletions trunk/kernel/power/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ static void free_some_memory(void)
printk("Freeing memory... ");
while ((tmp = shrink_all_memory(10000))) {
pages += tmp;
printk("\b%c", p[i]);
i++;
if (i > 3)
i = 0;
printk("\b%c", p[i++ % 4]);
}
printk("\bdone (%li pages freed)\n", pages);
}
Expand Down Expand Up @@ -177,13 +174,12 @@ int pm_suspend_disk(void)
goto Done;

if (in_suspend) {
device_resume();
pr_debug("PM: writing image.\n");
error = swsusp_write();
if (!error)
power_down(pm_disk_mode);
else {
/* swsusp_write can not fail in device_resume,
no need to do second device_resume */
swsusp_free();
unprepare_processes();
return error;
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/power/swsusp.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ int enough_swap(unsigned nr_pages)
int swsusp_write(void)
{
int error;
device_resume();

lock_swapdevices();
error = write_suspend_image();
/* This will unlock ignored swap devices since writing is finished */
Expand Down

0 comments on commit cadcafa

Please sign in to comment.