powerpc/book3s: Inline first level of update_mmu_cache()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 5 Sep 2022 09:38:25 +0000 (11:38 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:18 +0000 (20:58 +1000)
commit73ea68ad0d2f655815b6f1fbe1c5521d72f01b64
tree932f5124dd696eb8ba52c6049508fc829ec32be9
parent691cdf016d3be6f66a3ea384809be229e0f9c590
powerpc/book3s: Inline first level of update_mmu_cache()

update_mmu_cache() voids when hash page tables are not used.
On PPC32 that means when MMU_FTR_HPTE_TABLE is not defined.
On PPC64 that means when RADIX is enabled.

Rename core part of update_mmu_cache() as __update_mmu_cache()
and include the initial verification in an inlined caller.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/bea5ad0de7f83eff256116816d46c84fa0a444de.1662370698.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/book3s/pgtable.h
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/book3s64/hash_utils.c