diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-12-29 21:40:31 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-29 21:40:31 -0800 |
| commit | 6306d4857d08b5aa6f190cdd54fe3231f3a35d9f (patch) | |
| tree | b6851852df0254121016474e9c2204e480122e26 /include | |
| parent | 6aa1fff30fda814e22dec6b85050136673d7ce58 (diff) | |
[PATCH] add drain_local_pages() for CONFIG_SOFTWARE_SUSPEND
swsusp gets confused when pages which it freed do not appear in the
buddy lists. So provide a function which will drain the calling CPU's
per-cpu-pages into the buddy.
The patch has been tested by Pavel. Presence of the new code is
conditional on CONFIG_SOFTWARE_SUSPEND.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/suspend.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index a481f80034fa..80b4a657b49c 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h @@ -46,6 +46,9 @@ struct suspend_header { /* mm/vmscan.c */ extern int shrink_mem(void); +/* mm/page_alloc.c */ +extern void drain_local_pages(void); + /* kernel/suspend.c */ extern void software_suspend(void); extern void software_resume(void); |
