OpenCloudOS-Kernel/kernel/power
Rafael J. Wysocki 56f99bcb52 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>
2007-05-07 12:12:59 -07:00
..
Kconfig kconfig: mention 'hibernation' not just swsusp 2007-05-07 12:12:59 -07:00
Makefile [PATCH] Disable CPU hotplug during suspend 2006-09-26 08:48:59 -07:00
console.c [PATCH] swsusp: fix suspend when console is in VT_AUTO+KD_GRAPHICS mode 2007-03-16 19:25:05 -07:00
disk.c power management: change /sys/power/disk display 2007-05-07 12:12:59 -07:00
main.c remove software_suspend() 2007-05-07 12:12:59 -07:00
pm.c [PATCH] remove kernel/power/pm.c:pm_unregister_all() 2006-07-12 16:09:08 -07:00
power.h swsusp: free more memory 2007-05-07 12:12:59 -07:00
poweroff.c WorkStruct: Pass the work_struct pointer instead of context data 2006-11-22 14:55:48 +00:00
process.c fix refrigerator() vs thaw_process() race 2007-05-07 12:12:58 -07:00
snapshot.c swsusp: use GFP_KERNEL for creating basic data structures 2007-05-07 12:12:59 -07:00
swap.c swsusp: use rbtree for tracking allocated swap 2007-05-07 12:12:59 -07:00
swsusp.c swsusp: free more memory 2007-05-07 12:12:59 -07:00
user.c swsusp: fix snapshot_release 2007-05-07 12:12:59 -07:00