Christoph Lameter 9f8f217253 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.

[akpm@linux-foundation.org: fix build]
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05 09:44:17 -08:00
..
2007-07-17 10:22:59 -07:00
2008-02-05 09:44:16 -08:00
2007-10-20 01:27:18 +02:00
2008-02-05 09:44:16 -08:00
2007-02-15 09:57:03 -08:00
2007-10-18 14:37:31 -07:00
2007-05-21 09:18:19 -07:00
2008-02-05 09:44:14 -08:00
2008-01-25 21:08:27 +01:00
2007-10-20 01:27:18 +02:00
2007-10-17 08:42:45 -07:00
2008-02-05 09:44:16 -08:00
2007-12-09 10:17:52 -08:00
2008-02-04 10:56:02 -08:00
2007-10-20 01:27:18 +02:00
2007-11-14 18:45:41 -08:00
2008-02-05 09:44:17 -08:00
2007-10-20 01:27:18 +02:00
2007-11-14 18:45:42 -08:00