diff options
author | Jisheng Zhang <jszhang3@mail.ustc.edu.cn> | 2021-05-07 22:19:59 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-05-25 22:50:48 -0700 |
commit | 8f3e136ff378a2b22dbc0ca2a6e58022e6df36d2 (patch) | |
tree | eb3a37f0c445baf462178eb6c74b71039dd5225d /arch/riscv | |
parent | 3332f4190674114e08daaf6859c11a7e464bceff (diff) | |
download | linux-8f3e136ff378a2b22dbc0ca2a6e58022e6df36d2.tar.gz linux-8f3e136ff378a2b22dbc0ca2a6e58022e6df36d2.tar.bz2 linux-8f3e136ff378a2b22dbc0ca2a6e58022e6df36d2.zip |
riscv: mm: Remove setup_zero_page()
The empty_zero_page sits at .bss..page_aligned section, so will be
cleared to zero during clearing bss, we don't need to clear it again.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/mm/init.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 4faf8bd157ea..11b61bea0c4d 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -67,11 +67,6 @@ static void __init zone_sizes_init(void) free_area_init(max_zone_pfns); } -static void __init setup_zero_page(void) -{ - memset((void *)empty_zero_page, 0, PAGE_SIZE); -} - #if defined(CONFIG_MMU) && defined(CONFIG_DEBUG_VM) static inline void print_mlk(char *name, unsigned long b, unsigned long t) { @@ -867,7 +862,6 @@ RESERVEDMEM_OF_DECLARE(elfcorehdr, "linux,elfcorehdr", elfcore_hdr_setup); void __init paging_init(void) { setup_vm_final(); - setup_zero_page(); } void __init misc_mem_init(void) |