diff options
author | Pavel Machek <pavel@ucw.cz> | 2005-09-23 00:44:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-23 01:17:36 -0400 |
commit | 8686bcd0a5f5e3f599ed9f1028ec9e449e7b87e3 (patch) | |
tree | d8622e5819108fb4d90ea3cc0bbd3b1cc04d3a3d | |
parent | eafb42707b21beb42bba4eae7b742f837ee9d2e0 (diff) |
[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>
-rw-r--r-- | kernel/power/power.h | 2 | ||||
-rw-r--r-- | kernel/power/swsusp.c | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index cd6a3493cc0d..9c9167d910dd 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #include <linux/suspend.h> | 1 | #include <linux/suspend.h> |
2 | #include <linux/utsname.h> | 2 | #include <linux/utsname.h> |
3 | 3 | ||
4 | /* With SUSPEND_CONSOLE defined, it suspend looks *really* cool, but | 4 | /* With SUSPEND_CONSOLE defined suspend looks *really* cool, but |
5 | we probably do not take enough locks for switching consoles, etc, | 5 | we probably do not take enough locks for switching consoles, etc, |
6 | so bad things might happen. | 6 | so bad things might happen. |
7 | */ | 7 | */ |
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index 353f37f1ba28..1cc9ff25e479 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c | |||
@@ -363,7 +363,7 @@ static void lock_swapdevices(void) | |||
363 | } | 363 | } |
364 | 364 | ||
365 | /** | 365 | /** |
366 | * write_swap_page - Write one page to a fresh swap location. | 366 | * write_page - Write one page to a fresh swap location. |
367 | * @addr: Address we're writing. | 367 | * @addr: Address we're writing. |
368 | * @loc: Place to store the entry we used. | 368 | * @loc: Place to store the entry we used. |
369 | * | 369 | * |
@@ -863,6 +863,9 @@ static int alloc_image_pages(void) | |||
863 | return 0; | 863 | return 0; |
864 | } | 864 | } |
865 | 865 | ||
866 | /* Free pages we allocated for suspend. Suspend pages are alocated | ||
867 | * before atomic copy, so we need to free them after resume. | ||
868 | */ | ||
866 | void swsusp_free(void) | 869 | void swsusp_free(void) |
867 | { | 870 | { |
868 | BUG_ON(PageNosave(virt_to_page(pagedir_save))); | 871 | BUG_ON(PageNosave(virt_to_page(pagedir_save))); |
@@ -1213,8 +1216,9 @@ static struct pbe * swsusp_pagedir_relocate(struct pbe *pblist) | |||
1213 | free_pagedir(pblist); | 1216 | free_pagedir(pblist); |
1214 | free_eaten_memory(); | 1217 | free_eaten_memory(); |
1215 | pblist = NULL; | 1218 | pblist = NULL; |
1216 | } | 1219 | /* Is this even worth handling? It should never ever happen, and we |
1217 | else | 1220 | have just lost user's state, anyway... */ |
1221 | } else | ||
1218 | printk("swsusp: Relocated %d pages\n", rel); | 1222 | printk("swsusp: Relocated %d pages\n", rel); |
1219 | 1223 | ||
1220 | return pblist; | 1224 | return pblist; |