]> git.neil.brown.name Git - history.git/commit
[PATCH] add drain_local_pages() for CONFIG_SOFTWARE_SUSPEND
authorAndrew Morton <akpm@digeo.com>
Mon, 30 Dec 2002 05:40:31 +0000 (21:40 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 30 Dec 2002 05:40:31 +0000 (21:40 -0800)
commit6306d4857d08b5aa6f190cdd54fe3231f3a35d9f
treeb6851852df0254121016474e9c2204e480122e26
parent6aa1fff30fda814e22dec6b85050136673d7ce58
[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.
include/linux/suspend.h
mm/page_alloc.c