]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mmu: Don't duplicate radix_enabled()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 7 May 2021 05:45:52 +0000 (05:45 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 May 2021 05:27:16 +0000 (15:27 +1000)
commit662bd846f53570a21355789aced233083fec3338
tree6da4f6fd5604b9141ae0f99fc9af93caf1c3f4e2
parent8d43eb4460f17b8d971b9898efa843eab595d971
powerpc/mmu: Don't duplicate radix_enabled()

mmu_has_feature(MMU_FTR_TYPE_RADIX) can be evaluated regardless of
CONFIG_PPC_RADIX_MMU.

When CONFIG_PPC_RADIX_MMU is not set, mmu_has_feature(MMU_FTR_TYPE_RADIX)
will evaluate to 'false' at build time because MMU_FTR_TYPE_RADIX
wont be included in MMU_FTRS_POSSIBLE.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/62743846cbd493e5d9a02e197c2672a1d30df149.1620366342.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/mmu.h