From: Jiang Liu Date: Wed, 3 Jul 2013 22:04:31 +0000 (-0700) Subject: mm/PARISC: prepare for killing free_all_bootmem_node() X-Git-Tag: upstream/snapshot3+hdmi~4788^2~283 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5c017dde4ea0932f861d3ddf2b2ade92ee3d033;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Michal Hocko Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) {