|
@@ -265,33 +265,41 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb,
|
|
|
* For now w.r.t page table cache, mark the range_size as PAGE_SIZE
|
|
|
*/
|
|
|
|
|
|
+#ifndef pte_free_tlb
|
|
|
#define pte_free_tlb(tlb, ptep, address) \
|
|
|
do { \
|
|
|
__tlb_adjust_range(tlb, address, PAGE_SIZE); \
|
|
|
__pte_free_tlb(tlb, ptep, address); \
|
|
|
} while (0)
|
|
|
+#endif
|
|
|
|
|
|
+#ifndef pmd_free_tlb
|
|
|
#define pmd_free_tlb(tlb, pmdp, address) \
|
|
|
do { \
|
|
|
__tlb_adjust_range(tlb, address, PAGE_SIZE); \
|
|
|
__pmd_free_tlb(tlb, pmdp, address); \
|
|
|
} while (0)
|
|
|
+#endif
|
|
|
|
|
|
#ifndef __ARCH_HAS_4LEVEL_HACK
|
|
|
+#ifndef pud_free_tlb
|
|
|
#define pud_free_tlb(tlb, pudp, address) \
|
|
|
do { \
|
|
|
__tlb_adjust_range(tlb, address, PAGE_SIZE); \
|
|
|
__pud_free_tlb(tlb, pudp, address); \
|
|
|
} while (0)
|
|
|
#endif
|
|
|
+#endif
|
|
|
|
|
|
#ifndef __ARCH_HAS_5LEVEL_HACK
|
|
|
+#ifndef p4d_free_tlb
|
|
|
#define p4d_free_tlb(tlb, pudp, address) \
|
|
|
do { \
|
|
|
__tlb_adjust_range(tlb, address, PAGE_SIZE); \
|
|
|
__p4d_free_tlb(tlb, pudp, address); \
|
|
|
} while (0)
|
|
|
#endif
|
|
|
+#endif
|
|
|
|
|
|
#define tlb_migrate_finish(mm) do {} while (0)
|
|
|
|