mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
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>
This commit is contained in:
parent
3332f41906
commit
8f3e136ff3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user