From: Jiang Liu Date: Thu, 27 Jun 2013 23:52:06 +0000 (+1000) Subject: mm/PPC: prepare for killing free_all_bootmem_node() X-Git-Tag: next-20130628~3^2~446 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=57a6869fe7b575a5e198045b1a5511e23b7c7498;p=karo-tx-linux.git mm/PPC: 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: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Alexander Graf Cc: "Suzuki K. Poulose" Signed-off-by: Andrew Morton --- diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index fdaf2137b885..7f4bea162026 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -304,22 +304,8 @@ void __init mem_init(void) #endif high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); - -#ifdef CONFIG_NEED_MULTIPLE_NODES - { - pg_data_t *pgdat; - - for_each_online_pgdat(pgdat) - if (pgdat->node_spanned_pages != 0) { - printk("freeing bootmem node %d\n", - pgdat->node_id); - free_all_bootmem_node(pgdat); - } - } -#else - max_mapnr = max_pfn; + set_max_mapnr(max_pfn); free_all_bootmem(); -#endif #ifdef CONFIG_HIGHMEM {