Skip to content

Commit 99bad3e

Browse files
ardbiesheuvelwilldeacon
authored andcommitted
sh: Drop cache flush of the zero page at boot
SuperH performs cache maintenance on the zero page during boot, presumably because before commit 6215d9f ("arch, mm: consolidate empty_zero_page") the zero page did double duty as a boot params region, and was cleared separately, as it was not part of BSS. The memset() in question was dropped by that commit, but the __flush_wback_region() call remained. As empty_zero_page[] has been moved to BSS, it can be treated as any other BSS memory, and so the cache flush can be dropped. Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Cc: Mike Rapoport <rppt@kernel.org> Cc: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Signed-off-by: Will Deacon <will@kernel.org>
1 parent c069315 commit 99bad3e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

arch/sh/mm/init.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,6 @@ void __init mem_init(void)
331331
/* Set this up early, so we can take care of the zero page */
332332
cpu_cache_init();
333333

334-
/* clear the zero-page */
335-
__flush_wback_region(empty_zero_page, PAGE_SIZE);
336-
337334
vsyscall_init();
338335

339336
pr_info("virtual kernel memory layout:\n"

0 commit comments

Comments
 (0)