]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/PPC: prepare for killing free_all_bootmem_node()
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:52:06 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:52 +0000 (16:37 +1000)
Prepare for killing free_all_bootmem_node() by using free_all_bootmem().

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Alexander Graf <agraf@suse.de>
Cc: "Suzuki K. Poulose" <suzuki@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/powerpc/mm/mem.c

index fdaf2137b885dbbf538565b343afd6c878c5cd49..7f4bea16202674bc60a1dbc49d25fd9d0461382e 100644 (file)
@@ -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
        {