Skip to contentSkip to conversation

MIPS: Remove redundant TLB invalidate from pmdp_splitting_flush().

PATCH In review David Daney 2 participants 2 messages Oct 18, 2012 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Remove redundant TLB invalidate from pmdp_splitting_flush().

From: David Daney <[email protected]>

---
 arch/mips/mm/pgtable-64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/mm/pgtable-64.c +1 -1
index 6c9a477..5408bb5 100644
@@ -71,7 +71,7 @@ void pmdp_splitting_flush(struct vm_area_struct *vma,
 	if (!pmd_trans_splitting(*pmdp)) {
 		pmd_t pmd = pmd_mksplitting(*pmdp);
 		set_pmd_at(vma->vm_mm, address, pmdp, pmd);
-		flush_tlb_range(vma, address, address + HPAGE_SIZE);
+		/* TLB already flushed by set_pmd_at() */
 	}
 }
 
Signature · 1 line
1.7.11.7
#1 lore raw

arch/mips/mm/pgtable-64.c void pmdp_splitting_flush(struct vm_area_struct *vma, · line 74

Quoted 10 lines · David Daney
arch/mips/mm/pgtable-64.c +1 -1
index 6c9a477..5408bb5 100644
@@ -71,7 +71,7 @@ void pmdp_splitting_flush(struct vm_area_struct *vma,
 	if (!pmd_trans_splitting(*pmdp)) {
 		pmd_t pmd = pmd_mksplitting(*pmdp);
 		set_pmd_at(vma->vm_mm, address, pmdp, pmd);
-		flush_tlb_range(vma, address, address + HPAGE_SIZE);
+		/* TLB already flushed by set_pmd_at() */

Thanks, folded into the THP patch.

Ralf