aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-07-03 15:04:31 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 16:07:39 -0700
commitd5c017dde4ea0932f861d3ddf2b2ade92ee3d033 (patch)
tree4759d4e989c0dd291dbcd6e13de3a6fd0703da3e
parent629e7b4c8051f88daa7d2d53283128a4b2a6fa72 (diff)
downloadkernel_goldelico_gta04-d5c017dde4ea0932f861d3ddf2b2ade92ee3d033.zip
kernel_goldelico_gta04-d5c017dde4ea0932f861d3ddf2b2ade92ee3d033.tar.gz
kernel_goldelico_gta04-d5c017dde4ea0932f861d3ddf2b2ade92ee3d033.tar.bz2
mm/PARISC: prepare for killing free_all_bootmem_node()
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: "James E.J. Bottomley" <jejb@parisc-linux.org> Cc: Helge Deller <deller@gmx.de> Cc: Michal Hocko <mhocko@suse.cz> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/parisc/mm/init.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c
index b4edc76..b0f96c0 100644
--- a/arch/parisc/mm/init.c
+++ b/arch/parisc/mm/init.c
@@ -585,18 +585,8 @@ void __init mem_init(void)
> BITS_PER_LONG);
high_memory = __va((max_pfn << PAGE_SHIFT));
-
-#ifndef CONFIG_DISCONTIGMEM
- max_mapnr = page_to_pfn(virt_to_page(high_memory - 1)) + 1;
+ set_max_mapnr(page_to_pfn(virt_to_page(high_memory - 1)) + 1);
free_all_bootmem();
-#else
- {
- int i;
-
- for (i = 0; i < npmem_ranges; i++)
- free_all_bootmem_node(NODE_DATA(i));
- }
-#endif
#ifdef CONFIG_PA11
if (hppa_dma_ops == &pcxl_dma_ops) {