Skip to content

Commit 715ee35

Browse files
jiangliutorvalds
authored andcommitted
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>
1 parent 3f29c33 commit 715ee35

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎arch/um/kernel/mem.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ void __init mem_init(void)
7070
#ifdef CONFIG_HIGHMEM
7171
setup_highmem(end_iomem, highmem);
7272
#endif
73-
num_physpages = totalram_pages;
7473
max_pfn = totalram_pages;
75-
printk(KERN_INFO "Memory: %luk available\n",
76-
nr_free_pages() << (PAGE_SHIFT-10));
74+
mem_init_print_info(NULL);
7775
kmalloc_ok = 1;
7876
}
7977

0 commit comments

Comments
 (0)