]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited91f811652c65b0bf4d05a268a28c8cc9feb390
tree932f5124dd696eb8ba52c6049508fc829ec32be9
parentb8204a8d2402da3a447f78300857cffadf373be6
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