summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/tlbflush.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-12-14 20:44:24 +0100
committerPaul Mackerras <paulus@samba.org>2008-12-16 05:53:26 +0100
commit1a37a3fd7f12d8f9f720cceec84e23152e116668 (patch)
treef1bb07da46e2fe24baddc4cf36d067b67eb5c4ef /arch/powerpc/include/asm/tlbflush.h
parentpowerpc: Fix asm EMIT_BUG_ENTRY with !CONFIG_BUG (diff)
downloadlinux-1a37a3fd7f12d8f9f720cceec84e23152e116668.tar.xz
linux-1a37a3fd7f12d8f9f720cceec84e23152e116668.zip
powerpc/mm: 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. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/tlbflush.h')
-rw-r--r--arch/powerpc/include/asm/tlbflush.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/tlbflush.h b/arch/powerpc/include/asm/tlbflush.h
index 93716a9f4e16..333c24b54379 100644
--- a/arch/powerpc/include/asm/tlbflush.h
+++ b/arch/powerpc/include/asm/tlbflush.h
@@ -40,6 +40,11 @@ extern void _tlbil_va(unsigned long address, unsigned int pid);
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);