From: Jiang Liu Date: Thu, 27 Jun 2013 23:52:02 +0000 (+1000) Subject: mm/um: prepare for removing num_physpages and simplify mem_init() X-Git-Tag: next-20130628~3^2~459 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=692497ea332b30a79bdb186331857522fc531e20;p=karo-tx-linux.git mm/um: prepare for removing num_physpages and simplify mem_init() Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Jeff Dike Cc: Richard Weinberger Signed-off-by: Andrew Morton --- diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index b0c763094ffb..7ddb64baf327 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c @@ -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; }