swsusp: free more memory
authorRafael J. Wysocki <[email protected]>
Sun, 6 May 2007 21:50:52 +0000 (14:50 -0700)
committerLinus Torvalds <[email protected]>
Mon, 7 May 2007 19:12:59 +0000 (12:12 -0700)
commit56f99bcb52d64d70078b41cc176dd8b6f5763108
tree4383e31e46975ae1c1f6c7833bed0766f762f6d5
parent9b95e43763cfdfebc1318d27e55712e7b6bfe098
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 <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Cc: Nigel Cunningham <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/suspend.h
kernel/power/power.h
kernel/power/swsusp.c