diff mbox

[5/16] powerpc/mm: Add local_flush_tlb_mm() to SW loaded TLB implementations

Message ID 20081215054523.2D75DDDFB0@ozlabs.org (mailing list archive)
State Accepted, archived
Commit 1a37a3fd7f12d8f9f720cceec84e23152e116668
Headers show

Commit Message

Benjamin Herrenschmidt Dec. 15, 2008, 5:44 a.m. UTC
This adds a local_flush_tlb_mm() call as a pre-requisite for some
SMP work for BookE processors

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---

 arch/powerpc/include/asm/tlbflush.h |    5 +++++
 1 file changed, 5 insertions(+)

Comments

Kumar Gala Dec. 15, 2008, 8:30 p.m. UTC | #1
On Dec 14, 2008, at 11:44 PM, Benjamin Herrenschmidt wrote:

> This adds a local_flush_tlb_mm() call as a pre-requisite for some
> SMP work for BookE processors
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>
> arch/powerpc/include/asm/tlbflush.h |    5 +++++
> 1 file changed, 5 insertions(+)

Acked-by: Kumar Gala <galak@kernel.crashing.org>

- k
diff mbox

Patch

--- linux-work.orig/arch/powerpc/include/asm/tlbflush.h	2008-12-03 14:33:02.000000000 +1100
+++ linux-work/arch/powerpc/include/asm/tlbflush.h	2008-12-03 14:33:22.000000000 +1100
@@ -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);