All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: Keep TLB cache hot while flushing
@ 2011-10-28 14:15 Hillf Danton
  2011-10-28 16:16 ` David Daney
  0 siblings, 1 reply; 4+ messages in thread
From: Hillf Danton @ 2011-10-28 14:15 UTC (permalink / raw)
  To: David Daney; +Cc: Ralf Baechle, linux-mips

Hi David,

If we only flush the TLB of the given huge page, the TLB cache remains hot for
the relevant mm as it is, and less will be refilled after flush, huge or not.

As always all comments and ideas welcome.

Thanks

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/arch/mips/include/asm/hugetlb.h	Sat May 14 15:21:01 2011
+++ b/arch/mips/include/asm/hugetlb.h	Fri Oct 28 22:08:05 2011
@@ -70,7 +70,7 @@ static inline pte_t huge_ptep_get_and_cl
 static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
 					 unsigned long addr, pte_t *ptep)
 {
-	flush_tlb_mm(vma->vm_mm);
+	flush_tlb_page(vma, addr & huge_page_mask(hstate_vma(vma)));
 }

 static inline int huge_pte_none(pte_t pte)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-06  5:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28 14:15 [PATCH] MIPS: Keep TLB cache hot while flushing Hillf Danton
2011-10-28 16:16 ` David Daney
2011-11-04 14:56   ` Ralf Baechle
2011-11-06  5:08     ` Hillf Danton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.