Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48ddb154 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar
Browse files

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: default avatarYinghai Lu <yinghai.lu@sun.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent e83a5fdc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;