mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
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>
This commit is contained in:
parent
e83a5fdca8
commit
48ddb154cf
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user