diff options
author | Pavel Machek <pavel@ucw.cz> | 2005-09-22 21:44:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-22 22:17:36 -0700 |
commit | 8686bcd0a5f5e3f599ed9f1028ec9e449e7b87e3 (patch) | |
tree | d8622e5819108fb4d90ea3cc0bbd3b1cc04d3a3d /kernel/power/swsusp.c | |
parent | eafb42707b21beb42bba4eae7b742f837ee9d2e0 (diff) | |
download | kernel_samsung_aries-8686bcd0a5f5e3f599ed9f1028ec9e449e7b87e3.zip kernel_samsung_aries-8686bcd0a5f5e3f599ed9f1028ec9e449e7b87e3.tar.gz kernel_samsung_aries-8686bcd0a5f5e3f599ed9f1028ec9e449e7b87e3.tar.bz2 |
[PATCH] swsusp: fix comments
Fix comments in swsusp.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/power/swsusp.c')
-rw-r--r-- | kernel/power/swsusp.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index 353f37f..1cc9ff2 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c @@ -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. * @@ -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))); @@ -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; |