powerpc/64s: Remove POWER9 DD1 support
[linux-2.6-block.git] / arch / powerpc / include / asm / book3s / 64 / hugetlb.h
index c459f937d484c5769b700a0fb2fbabf73438895e..50888388a3590966d521c71ef75633af4f636c97 100644 (file)
@@ -32,26 +32,6 @@ static inline int hstate_get_psize(struct hstate *hstate)
        }
 }
 
-#define arch_make_huge_pte arch_make_huge_pte
-static inline pte_t arch_make_huge_pte(pte_t entry, struct vm_area_struct *vma,
-                                      struct page *page, int writable)
-{
-       unsigned long page_shift;
-
-       if (!cpu_has_feature(CPU_FTR_POWER9_DD1))
-               return entry;
-
-       page_shift = huge_page_shift(hstate_vma(vma));
-       /*
-        * We don't support 1G hugetlb pages yet.
-        */
-       VM_WARN_ON(page_shift == mmu_psize_defs[MMU_PAGE_1G].shift);
-       if (page_shift == mmu_psize_defs[MMU_PAGE_2M].shift)
-               return __pte(pte_val(entry) | R_PAGE_LARGE);
-       else
-               return entry;
-}
-
 #ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE
 static inline bool gigantic_page_supported(void)
 {