From: Jiang Liu Date: Wed, 3 Jul 2013 22:04:16 +0000 (-0700) Subject: mm/um: prepare for removing num_physpages and simplify mem_init() X-Git-Tag: accepted/tizen/common/20141203.182822~1935^2~295 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=715ee356535e861c0c0890697fa48eeb8af94019;p=platform%2Fkernel%2Flinux-arm64.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 Signed-off-by: Linus Torvalds --- diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index b0c7630..7ddb64b 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; }