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)
commitfe3dc333d2ed50c9764d281869d87bae0d795ce5
tree6da4f6fd5604b9141ae0f99fc9af93caf1c3f4e2
parent70d6ebf82bd0cfddaebb54e861fc15e9945a5fc6
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