提交 48ddb154 编写于 作者: Y Yinghai Lu 提交者: Ingo Molnar

x86: not clear empty_zero_page again

empty_zero_page is in .bss section, and it is cleared in clear_bss by
x86_64_start_kernel(). So don't clear that again in mem_init
Signed-off-by: NYinghai Lu <yinghai.lu@sun.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 e83a5fdc
...@@ -495,8 +495,7 @@ void __init mem_init(void) ...@@ -495,8 +495,7 @@ void __init mem_init(void)
pci_iommu_alloc(); pci_iommu_alloc();
/* clear the zero-page */ /* clear_bss() already clear the empty_zero_page */
memset(empty_zero_page, 0, PAGE_SIZE);
reservedpages = 0; reservedpages = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册