OSDN Git Service

sh/tlb: Fix PGTABLE_LEVELS > 2
authorPeter Zijlstra <peterz@infradead.org>
Fri, 17 Jul 2020 11:10:07 +0000 (13:10 +0200)
committerRich Felker <dalias@libc.org>
Mon, 27 Jul 2020 20:12:48 +0000 (16:12 -0400)
commitc7bcbc8ab9cb20536b8f50c62a48cebda965fdba
treeb1f867329209a799f109f1527198e26d772049ce
parent92ed301919932f777713b9172e525674157e983d
sh/tlb: Fix PGTABLE_LEVELS > 2

Geert reported that his SH7722-based Migo-R board failed to boot after
commit:

  c5b27a889da9 ("sh/tlb: Convert SH to generic mmu_gather")

That commit fell victim to copying the wrong pattern --
__pmd_free_tlb() used to be implemented with pmd_free().

Fixes: c5b27a889da9 ("sh/tlb: Convert SH to generic mmu_gather")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/include/asm/pgalloc.h