powerpc/mm: Define radix_enabled() in one place & use static inline
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2016 03:37:58 +0000 (13:37 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:14:59 +0000 (11:14 +1000)
commitbab4c8de6289b4615c21ddf0400397d03ce1863c
tree5f30b809c190cbf45679a91178b4185d553ee894
parent6574ba950bbe9ab2460f8143018d93d15cacf5be
powerpc/mm: Define radix_enabled() in one place & use static inline

Currently we have radix_enabled() three times, twice in asm/book3s/64/mmu.h
and then a fallback in asm/mmu.h.

Consolidate them in asm/mmu.h. While we're at it convert them to be
static inlines, and change the fallback case to returning a bool, like
mmu_has_feature().

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/mmu.h