diff options
author | Yinghai Lu <Yinghai.Lu@Sun.COM> | 2008-01-30 13:32:36 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:32:36 +0100 |
commit | 48ddb154cf55fb1e292af49c270b950ef2c6ef32 (patch) | |
tree | dd0780ccfffa8b0cbc25bfb9f3d455cc4f231a66 /arch/x86/mm/init_64.c | |
parent | e83a5fdca89970f87e06f87a1d18be22b161e2ba (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 15e05a004fc..6c3f6eb1f79 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -495,8 +495,7 @@ void __init mem_init(void) pci_iommu_alloc(); - /* clear the zero-page */ - memset(empty_zero_page, 0, PAGE_SIZE); + /* clear_bss() already clear the empty_zero_page */ reservedpages = 0; |