diff options
Diffstat (limited to 'mm/pgtable-generic.c')
-rw-r--r-- | mm/pgtable-generic.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/mm/pgtable-generic.c b/mm/pgtable-generic.c index 06a005b979a7..71c5f9109f2a 100644 --- a/mm/pgtable-generic.c +++ b/mm/pgtable-generic.c | |||
@@ -84,20 +84,6 @@ pte_t ptep_clear_flush(struct vm_area_struct *vma, unsigned long address, | |||
84 | 84 | ||
85 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | 85 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
86 | 86 | ||
87 | #ifndef __HAVE_ARCH_FLUSH_PMD_TLB_RANGE | ||
88 | |||
89 | /* | ||
90 | * ARCHes with special requirements for evicting THP backing TLB entries can | ||
91 | * implement this. Otherwise also, it can help optimize normal TLB flush in | ||
92 | * THP regime. stock flush_tlb_range() typically has optimization to nuke the | ||
93 | * entire TLB if flush span is greater than a threshold, which will | ||
94 | * likely be true for a single huge page. Thus a single thp flush will | ||
95 | * invalidate the entire TLB which is not desirable. | ||
96 | * e.g. see arch/arc: flush_pmd_tlb_range | ||
97 | */ | ||
98 | #define flush_pmd_tlb_range(vma, addr, end) flush_tlb_range(vma, addr, end) | ||
99 | #endif | ||
100 | |||
101 | #ifndef __HAVE_ARCH_PMDP_SET_ACCESS_FLAGS | 87 | #ifndef __HAVE_ARCH_PMDP_SET_ACCESS_FLAGS |
102 | int pmdp_set_access_flags(struct vm_area_struct *vma, | 88 | int pmdp_set_access_flags(struct vm_area_struct *vma, |
103 | unsigned long address, pmd_t *pmdp, | 89 | unsigned long address, pmd_t *pmdp, |