]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/metag: prepare for killing free_all_bootmem_node()
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:52:05 +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: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/metag/mm/init.c

index e0862b7ecd6ec4d91929fe0ac79612fd9e899b2a..28813f164730f7110ccf470d6ef610932f166580 100644 (file)
@@ -376,31 +376,21 @@ void __init paging_init(unsigned long mem_end)
 
 void __init mem_init(void)
 {
-       int nid;
-
 #ifdef CONFIG_HIGHMEM
        unsigned long tmp;
 
        /*
         * Explicitly reset zone->managed_pages because highmem pages are
-        * freed before calling free_all_bootmem_node();
+        * freed before calling free_all_bootmem();
         */
        reset_all_zones_managed_pages();
        for (tmp = highstart_pfn; tmp < highend_pfn; tmp++)
                free_highmem_page(pfn_to_page(tmp));
 #endif /* CONFIG_HIGHMEM */
 
-       for_each_online_node(nid) {
-               pg_data_t *pgdat = NODE_DATA(nid);
-
-               if (pgdat->node_spanned_pages)
-                       free_all_bootmem_node(pgdat);
-       }
-
+       free_all_bootmem();
        mem_init_print_info(NULL);
        show_mem(0);
-
-       return;
 }
 
 void free_initmem(void)