]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit760dcc69232f6b243da94fe990b27146015e9032
treeb1f867329209a799f109f1527198e26d772049ce
parent1b15a78eb17821fa5bb5d03d8950ebb6246c640b
sh/tlb: Fix PGTABLE_LEVELS > 2

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

  5ee84454bca2 ("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: 5ee84454bca2 ("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