|
@@ -163,6 +163,18 @@ static inline void assert_pte_locked(struct mm_struct *mm, unsigned long addr)
|
|
|
}
|
|
|
#endif /* !CONFIG_DEBUG_VM */
|
|
|
|
|
|
+#ifdef CONFIG_PPC_RADIX_MMU
|
|
|
+static inline bool radix_enabled(void)
|
|
|
+{
|
|
|
+ return mmu_has_feature(MMU_FTR_TYPE_RADIX);
|
|
|
+}
|
|
|
+#else
|
|
|
+static inline bool radix_enabled(void)
|
|
|
+{
|
|
|
+ return false;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
#endif /* !__ASSEMBLY__ */
|
|
|
|
|
|
/* The kernel use the constants below to index in the page sizes array.
|
|
@@ -230,9 +242,5 @@ static inline void mmu_early_init_devtree(void) { }
|
|
|
# include <asm/mmu-8xx.h>
|
|
|
#endif
|
|
|
|
|
|
-#ifndef radix_enabled
|
|
|
-#define radix_enabled() (0)
|
|
|
-#endif
|
|
|
-
|
|
|
#endif /* __KERNEL__ */
|
|
|
#endif /* _ASM_POWERPC_MMU_H_ */
|