aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2007-02-10 04:43:03 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 13:51:18 -0500
commit96177299416dbccb73b54e6b344260154a445375 (patch)
tree586454851d0fbbb365d6b12c852d5a7dd6b004f4 /mm/page_alloc.c
parent51ed4491271be8c56bdb2a03481ed34ea4984bc2 (diff)
[PATCH] Drop free_pages()
nr_free_pages is now a simple access to a global variable. Make it a macro instead of a function. The nr_free_pages now requires vmstat.h to be included. There is one occurrence in power management where we need to add the include. Directly refrer to global_page_state() there to clarify why the #include was added. [akpm@osdl.org: arm build fix] [akpm@osdl.org: sparc64 build fix] Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index ba62d8789f73..f1e320b3a988 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1440,16 +1440,6 @@ fastcall void free_pages(unsigned long addr, unsigned int order)
1440 1440
1441EXPORT_SYMBOL(free_pages); 1441EXPORT_SYMBOL(free_pages);
1442 1442
1443/*
1444 * Total amount of free (allocatable) RAM:
1445 */
1446unsigned int nr_free_pages(void)
1447{
1448 return global_page_state(NR_FREE_PAGES);
1449}
1450
1451EXPORT_SYMBOL(nr_free_pages);
1452
1453#ifdef CONFIG_NUMA 1443#ifdef CONFIG_NUMA
1454unsigned int nr_free_pages_pgdat(pg_data_t *pgdat) 1444unsigned int nr_free_pages_pgdat(pg_data_t *pgdat)
1455{ 1445{