aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/init_64.c
diff options
context:
space:
mode:
authorYinghai Lu <Yinghai.Lu@Sun.COM>2008-01-30 07:32:36 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:32:36 -0500
commit48ddb154cf55fb1e292af49c270b950ef2c6ef32 (patch)
treedd0780ccfffa8b0cbc25bfb9f3d455cc4f231a66 /arch/x86/mm/init_64.c
parente83a5fdca89970f87e06f87a1d18be22b161e2ba (diff)
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: Yinghai Lu <yinghai.lu@sun.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r--arch/x86/mm/init_64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 15e05a004fcf..6c3f6eb1f790 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -495,8 +495,7 @@ void __init mem_init(void)
495 495
496 pci_iommu_alloc(); 496 pci_iommu_alloc();
497 497
498 /* clear the zero-page */ 498 /* clear_bss() already clear the empty_zero_page */
499 memset(empty_zero_page, 0, PAGE_SIZE);
500 499
501 reservedpages = 0; 500 reservedpages = 0;
502 501