powerpc/mm/thp: Abstraction for THP functions
[deliverable/linux.git] / arch / powerpc / include / asm / book3s / 64 / hash-4k.h
index dcb9d6e94a0cd9b8e7fdb7321607edec904700a6..6a10b0d893542d69c91760fdd1422cf3570b0275 100644 (file)
@@ -28,6 +28,8 @@
 #define H_PAGE_4K_PFN  0x0
 #define H_PAGE_THP_HUGE 0x0
 #define H_PAGE_COMBO   0x0
+#define H_PTE_FRAG_NR  0
+#define H_PTE_FRAG_SIZE_SHIFT  0
 /*
  * On all 4K setups, remap_4k_pfn() equates to remap_pfn_range()
  */
        remap_pfn_range((vma), (addr), (pfn), PAGE_SIZE, (prot))
 
 #ifdef CONFIG_HUGETLB_PAGE
-/*
- * For 4k page size, we support explicit hugepage via hugepd
- */
-static inline int pmd_huge(pmd_t pmd)
-{
-       return 0;
-}
-
-static inline int pud_huge(pud_t pud)
-{
-       return 0;
-}
-
-static inline int pgd_huge(pgd_t pgd)
-{
-       return 0;
-}
-#define pgd_huge pgd_huge
-
-static inline int hugepd_ok(hugepd_t hpd)
+static inline int hash__hugepd_ok(hugepd_t hpd)
 {
        /*
         * if it is not a pte and have hugepd shift mask
@@ -65,7 +48,6 @@ static inline int hugepd_ok(hugepd_t hpd)
                return true;
        return false;
 }
-#define is_hugepd(hpd)         (hugepd_ok(hpd))
 #endif
 
 #endif /* !__ASSEMBLY__ */
This page took 0.037674 seconds and 5 git commands to generate.