]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/include/asm/pgtable-ppc64.h
powerpc/mm: Allow more flexible layouts for hugepage pagetables
[karo-tx-linux.git] / arch / powerpc / include / asm / pgtable-ppc64.h
index 8697d6555090f8b1e62ffa13a2d2a0d312b744b9..49865045d56f2559377a62c3938cb9656f76f360 100644 (file)
@@ -379,7 +379,18 @@ void pgtable_cache_init(void);
        return pt;
 }
 
-pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long address);
+#ifdef CONFIG_HUGETLB_PAGE
+pte_t *find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea,
+                                unsigned *shift);
+#else
+static inline pte_t *find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea,
+                                              unsigned *shift)
+{
+       if (shift)
+               *shift = 0;
+       return find_linux_pte(pgdir, ea);
+}
+#endif /* !CONFIG_HUGETLB_PAGE */
 
 #endif /* __ASSEMBLY__ */