Skip to contentSkip to conversation

powerpc: Add local_flush_tlb_mm() to SW loaded TLB implementations

PATCH In review Benjamin Herrenschmidt 1 participant 1 message Dec 4, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 powerpc: Add local_flush_tlb_mm() to SW loaded TLB implementations

This adds a local_flush_tlb_mm() call as a pre-requisite for some SMP work for BookE processors

---

 arch/powerpc/include/asm/tlbflush.h |    5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/include/asm/tlbflush.h +5 -0
@@ -40,6 +40,11 @@ extern void _tlbil_va(unsigned long addr
 extern void _tlbia(void);
 #endif
 
+static inline void local_flush_tlb_mm(struct mm_struct *mm)
+{
+	_tlbil_pid(mm->context.id);
+}
+
 static inline void flush_tlb_mm(struct mm_struct *mm)
 {
 	_tlbil_pid(mm->context.id);