Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9241
b: refs/heads/master
c: 8686bcd
h: refs/heads/master
i:
  9239: 5730213
v: v3
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Sep 23, 2005
1 parent ac1f6af commit b6a1dfc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 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: eafb42707b21beb42bba4eae7b742f837ee9d2e0
refs/heads/master: 8686bcd0a5f5e3f599ed9f1028ec9e449e7b87e3
2 changes: 1 addition & 1 deletion trunk/kernel/power/power.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <linux/suspend.h>
#include <linux/utsname.h>

/* With SUSPEND_CONSOLE defined, it suspend looks *really* cool, but
/* With SUSPEND_CONSOLE defined suspend looks *really* cool, but
we probably do not take enough locks for switching consoles, etc,
so bad things might happen.
*/
Expand Down
10 changes: 7 additions & 3 deletions trunk/kernel/power/swsusp.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ static void lock_swapdevices(void)
}

/**
* write_swap_page - Write one page to a fresh swap location.
* write_page - Write one page to a fresh swap location.
* @addr: Address we're writing.
* @loc: Place to store the entry we used.
*
Expand Down Expand Up @@ -863,6 +863,9 @@ static int alloc_image_pages(void)
return 0;
}

/* Free pages we allocated for suspend. Suspend pages are alocated
* before atomic copy, so we need to free them after resume.
*/
void swsusp_free(void)
{
BUG_ON(PageNosave(virt_to_page(pagedir_save)));
Expand Down Expand Up @@ -1213,8 +1216,9 @@ static struct pbe * swsusp_pagedir_relocate(struct pbe *pblist)
free_pagedir(pblist);
free_eaten_memory();
pblist = NULL;
}
else
/* Is this even worth handling? It should never ever happen, and we
have just lost user's state, anyway... */
} else
printk("swsusp: Relocated %d pages\n", rel);

return pblist;
Expand Down

0 comments on commit b6a1dfc

Please sign in to comment.