page-allocator-clean-up-pcp-draining-functions
commit82cf74404e91a923b963cc0084934ece2f904b52
authorChristoph Lameter <clameter@sgi.com>
Tue, 13 Nov 2007 04:10:27 +0000 (13 04:10 +0000)
committerMatthias Urlichs <smurf@hera.kernel.org>
Wed, 14 Nov 2007 11:28:11 +0000 (14 11:28 +0000)
treebdab669d0b614722af1e3196b9ca4f95affb59d9
parent8da0759de9b9b22e34b1ce0dec4f688222ed025f
page-allocator-clean-up-pcp-draining-functions

- Add comments explaing how drain_pages() works.

- Eliminate useless functions

- Rename drain_all_local_pages to drain_all_pages(). It does drain
  all pages not only those of the local processor.

- Eliminate useless interrupt off / on sequences. drain_pages()
  disables interrupts on its own. The execution thread is
  pinned to processor by the caller. So there is no need to
  disable interrupts.

- Put drain_all_pages() declaration in gfp.h and remove the
  declarations from suspend.h and from mm/memory_hotplug.c

- Make software suspend call drain_all_pages(). The draining
  of processor local pages is may not the right approach if
  software suspend wants to support SMP. If they call drain_all_pages
  then we can make drain_pages() static.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/gfp.h
include/linux/suspend.h
kernel/power/snapshot.c
mm/memory_hotplug.c
mm/page_alloc.c