projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e83a5fd
)
x86: not clear empty_zero_page again
author
Yinghai Lu
<Yinghai.Lu@Sun.COM>
Wed, 30 Jan 2008 12:32:36 +0000
(13:32 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:32:36 +0000
(13:32 +0100)
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>
arch/x86/mm/init_64.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/init_64.c
b/arch/x86/mm/init_64.c
index 15e05a004fcfd67f17cfcc7e78cec3416b92b8e5..6c3f6eb1f790b74f4ef8075ad734db6281950a7f 100644
(file)
--- 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;