]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/metag: prepare for removing num_physpages and simplify mem_init()
authorJiang Liu <liuj97@gmail.com>
Wed, 19 Jun 2013 00:06:29 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:18 +0000 (17:13 +1000)
Prepare for removing num_physpages and simplify mem_init().

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/metag/mm/init.c

index ce81d7c43983bc20ddae2e879fe6ea35a40db887..e0862b7ecd6ec4d91929fe0ac79612fd9e899b2a 100644 (file)
@@ -388,22 +388,16 @@ void __init mem_init(void)
        reset_all_zones_managed_pages();
        for (tmp = highstart_pfn; tmp < highend_pfn; tmp++)
                free_highmem_page(pfn_to_page(tmp));
-       num_physpages += totalhigh_pages;
 #endif /* CONFIG_HIGHMEM */
 
        for_each_online_node(nid) {
                pg_data_t *pgdat = NODE_DATA(nid);
 
-               num_physpages += pgdat->node_present_pages;
-
                if (pgdat->node_spanned_pages)
                        free_all_bootmem_node(pgdat);
        }
 
-       pr_info("Memory: %luk/%luk available\n",
-               (unsigned long)nr_free_pages() << (PAGE_SHIFT - 10),
-               num_physpages << (PAGE_SHIFT - 10));
-
+       mem_init_print_info(NULL);
        show_mem(0);
 
        return;