Skip to content

Commit

Permalink
x86: not clear empty_zero_page again
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jan 30, 2008
1 parent e83a5fd commit 48ddb15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 48ddb15

Please sign in to comment.