diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-04-29 15:06:53 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 15:54:31 -0700 |
commit | bced0e32f6bdf4e2584bc9df58e3fbebaaf42bef (patch) | |
tree | df48e08865fea4fb267e3a9c17ef93bc4e0f89d6 /arch/x86/mm/init_64.c | |
parent | ccecb510a9b58f1e30a45f35897842f915c24c62 (diff) | |
download | op-kernel-dev-bced0e32f6bdf4e2584bc9df58e3fbebaaf42bef.zip op-kernel-dev-bced0e32f6bdf4e2584bc9df58e3fbebaaf42bef.tar.gz |
mm/x86: use common help functions to free reserved pages
Use common help functions to free reserved pages.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r-- | arch/x86/mm/init_64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 474e28f..2ef81f1 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -1067,10 +1067,9 @@ void __init mem_init(void) /* clear_bss() already clear the empty_zero_page */ - reservedpages = 0; - - /* this will put all low memory onto the freelists */ register_page_bootmem_info(); + + /* this will put all memory onto the freelists */ totalram_pages = free_all_bootmem(); absent_pages = absent_pages_in_range(0, max_pfn); |