hugetlb: introduce generic version of hugetlb_free_pgd_range
[sfrench/cifs-2.6.git] / include / asm-generic / hugetlb.h
index 3da7cff52360375b6c964f0c6be22f4689743992..c697ca9dda1869e46ea186f5e993df7f186cebfb 100644 (file)
@@ -40,4 +40,15 @@ static inline void huge_pte_clear(struct mm_struct *mm, unsigned long addr,
 }
 #endif
 
+#ifndef __HAVE_ARCH_HUGETLB_FREE_PGD_RANGE
+static inline void hugetlb_free_pgd_range(struct mmu_gather *tlb,
+               unsigned long addr, unsigned long end,
+               unsigned long floor, unsigned long ceiling)
+{
+       free_pgd_range(tlb, addr, end, floor, ceiling);
+}
+
+
+#endif
+
 #endif /* _ASM_GENERIC_HUGETLB_H */