提交 087fa4e9 编写于 作者: P Pekka Enberg 提交者: Ingo Molnar

x86: use sparse_memory_present_with_active_regions() on UMA

There's no need to use call memory_present() manually on UMA because
initmem_init() sets up early_node_map by calling
e820_register_active_regions().

[ Impact: cleanup ]
Signed-off-by: NPekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1241699742.17846.31.camel@penberg-laptop>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 3551f88f
......@@ -596,11 +596,7 @@ void __init paging_init(void)
max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
max_zone_pfns[ZONE_NORMAL] = max_pfn;
#ifdef CONFIG_NUMA
sparse_memory_present_with_active_regions(MAX_NUMNODES);
#else
memory_present(0, 0, max_pfn);
#endif
sparse_init();
free_area_init_nodes(max_zone_pfns);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册