diff options
author | Steve French <sfrench@us.ibm.com> | 2006-02-01 15:16:53 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-02-01 15:16:53 -0500 |
commit | e6da74e1f20ea7822e52a9e4fbd3d25bd907e471 (patch) | |
tree | d9b3bc7e654fb788d1cf3a1759b1b3c74cc56a04 /kernel/power/swsusp.c | |
parent | 1877c9ea66a29563987f22d0a86c66f438a87ce2 (diff) | |
parent | 3c3b809e256c417847f1a96b2f9d9f66c7fcb02c (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'kernel/power/swsusp.c')
-rw-r--r-- | kernel/power/swsusp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index 55a18d26abed..59c91c148e82 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c | |||
@@ -70,12 +70,12 @@ | |||
70 | #include "power.h" | 70 | #include "power.h" |
71 | 71 | ||
72 | /* | 72 | /* |
73 | * Preferred image size in MB (tunable via /sys/power/image_size). | 73 | * Preferred image size in bytes (tunable via /sys/power/image_size). |
74 | * When it is set to N, swsusp will do its best to ensure the image | 74 | * When it is set to N, swsusp will do its best to ensure the image |
75 | * size will not exceed N MB, but if that is impossible, it will | 75 | * size will not exceed N bytes, but if that is impossible, it will |
76 | * try to create the smallest image possible. | 76 | * try to create the smallest image possible. |
77 | */ | 77 | */ |
78 | unsigned int image_size = 500; | 78 | unsigned long image_size = 500 * 1024 * 1024; |
79 | 79 | ||
80 | #ifdef CONFIG_HIGHMEM | 80 | #ifdef CONFIG_HIGHMEM |
81 | unsigned int count_highmem_pages(void); | 81 | unsigned int count_highmem_pages(void); |
@@ -590,7 +590,7 @@ int swsusp_shrink_memory(void) | |||
590 | if (!tmp) | 590 | if (!tmp) |
591 | return -ENOMEM; | 591 | return -ENOMEM; |
592 | pages += tmp; | 592 | pages += tmp; |
593 | } else if (size > (image_size * 1024 * 1024) / PAGE_SIZE) { | 593 | } else if (size > image_size / PAGE_SIZE) { |
594 | tmp = shrink_all_memory(SHRINK_BITE); | 594 | tmp = shrink_all_memory(SHRINK_BITE); |
595 | pages += tmp; | 595 | pages += tmp; |
596 | } | 596 | } |