]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/um: prepare for removing num_physpages and simplify mem_init()
authorJiang Liu <liuj97@gmail.com>
Fri, 7 Jun 2013 00:08:14 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:26 +0000 (15:42 +1000)
Prepare for removing num_physpages and simplify mem_init().

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/um/kernel/mem.c

index b0c763094ffb034daa161bed8a207d6505f22c37..7ddb64baf3270620ae608e4764407ccbfe36dd7b 100644 (file)
@@ -70,10 +70,8 @@ void __init mem_init(void)
 #ifdef CONFIG_HIGHMEM
        setup_highmem(end_iomem, highmem);
 #endif
-       num_physpages = totalram_pages;
        max_pfn = totalram_pages;
-       printk(KERN_INFO "Memory: %luk available\n",
-              nr_free_pages() << (PAGE_SHIFT-10));
+       mem_init_print_info(NULL);
        kmalloc_ok = 1;
 }