diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-05-06 17:50:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:12:59 -0400 |
commit | 56f99bcb52d64d70078b41cc176dd8b6f5763108 (patch) | |
tree | 4383e31e46975ae1c1f6c7833bed0766f762f6d5 /include | |
parent | 9b95e43763cfdfebc1318d27e55712e7b6bfe098 (diff) |
swsusp: free more memory
Move the definition of PAGES_FOR_IO to kernel/power/power.h and introduce
SPARE_PAGES representing the number of pages that should be freed by the
swsusp's memory shrinker in addition to PAGES_FOR_IO so that device drivers
can allocate some memory (up to 1 MB total) in their .suspend() routines
without causing the suspend to fail.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/suspend.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 3aecc96acc76..96868be9c211 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h | |||
@@ -52,10 +52,4 @@ struct saved_context; | |||
52 | void __save_processor_state(struct saved_context *ctxt); | 52 | void __save_processor_state(struct saved_context *ctxt); |
53 | void __restore_processor_state(struct saved_context *ctxt); | 53 | void __restore_processor_state(struct saved_context *ctxt); |
54 | 54 | ||
55 | /* | ||
56 | * XXX: We try to keep some more pages free so that I/O operations succeed | ||
57 | * without paging. Might this be more? | ||
58 | */ | ||
59 | #define PAGES_FOR_IO 1024 | ||
60 | |||
61 | #endif /* _LINUX_SWSUSP_H */ | 55 | #endif /* _LINUX_SWSUSP_H */ |