]> 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>
Thu, 27 Jun 2013 23:52:02 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:50 +0000 (16:37 +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;
 }