diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-27 13:37:58 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-08-01 11:14:59 +1000 |
commit | bab4c8de6289b4615c21ddf0400397d03ce1863c (patch) | |
tree | 5f30b809c190cbf45679a91178b4185d553ee894 /arch/powerpc/include/asm/book3s/64/mmu.h | |
parent | 6574ba950bbe9ab2460f8143018d93d15cacf5be (diff) | |
download | linux-bab4c8de6289b4615c21ddf0400397d03ce1863c.tar.gz linux-bab4c8de6289b4615c21ddf0400397d03ce1863c.tar.bz2 linux-bab4c8de6289b4615c21ddf0400397d03ce1863c.zip |
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>
Diffstat (limited to 'arch/powerpc/include/asm/book3s/64/mmu.h')
-rw-r--r-- | arch/powerpc/include/asm/book3s/64/mmu.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/mmu.h b/arch/powerpc/include/asm/book3s/64/mmu.h index ad2d501cddcf..70c995870297 100644 --- a/arch/powerpc/include/asm/book3s/64/mmu.h +++ b/arch/powerpc/include/asm/book3s/64/mmu.h @@ -23,13 +23,6 @@ struct mmu_psize_def { }; extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]; -#ifdef CONFIG_PPC_RADIX_MMU -#define radix_enabled() mmu_has_feature(MMU_FTR_TYPE_RADIX) -#else -#define radix_enabled() (0) -#endif - - #endif /* __ASSEMBLY__ */ /* 64-bit classic hash table MMU */ |