summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/mem.c
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-07-04 00:04:16 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 01:07:37 +0200
commit715ee356535e861c0c0890697fa48eeb8af94019 (patch)
tree448b023754e011fa109b1be6d1d3382bbfa13c84 /arch/um/kernel/mem.c
parentmm/tile: prepare for removing num_physpages and simplify mem_init() (diff)
downloadlinux-715ee356535e861c0c0890697fa48eeb8af94019.tar.xz
linux-715ee356535e861c0c0890697fa48eeb8af94019.zip
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 <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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/kernel/mem.c')
-rw-r--r--arch/um/kernel/mem.c4
1 files changed, 1 insertions, 3 deletions
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;
}