@@ -23,7 +23,7 @@ struct mmu_psize_def {
};
extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
-#define radix_enabled() mmu_feature_enabled(MMU_FTR_RADIX)
+#define radix_enabled() mmu_has_feature(MMU_FTR_RADIX)
#endif /* __ASSEMBLY__ */
@@ -115,7 +115,7 @@
DECLARE_PER_CPU(int, next_tlbcam_idx);
#endif
-static inline int mmu_has_feature(unsigned long feature)
+static inline int __mmu_has_feature(unsigned long feature)
{
return (cur_cpu_spec->mmu_features & feature);
}
@@ -145,7 +145,7 @@ static inline void assert_pte_locked(struct mm_struct *mm, unsigned long addr)
#endif /* !CONFIG_DEBUG_VM */
#ifdef HAVE_JUMP_LABEL
-static __always_inline bool mmu_feature_enabled(unsigned long feature)
+static __always_inline bool mmu_has_feature(unsigned long feature)
{
asm_volatile_goto("1:\n\t"
".pushsection __mmu_ftr_fixup_c, \"a\"\n\t"
@@ -155,7 +155,7 @@ static __always_inline bool mmu_feature_enabled(unsigned long feature)
JUMP_ENTRY_TYPE "%l[l_false]\n\t"
".popsection\n\t"
: : "i"(feature) : : l_true, l_false);
- if (mmu_has_feature(feature))
+ if (__mmu_has_feature(feature))
l_true:
return true;
l_false: