]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/mm: Add local_flush_tlb_mm() to SW loaded TLB implementations
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 14 Dec 2008 19:44:24 +0000 (19:44 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 16 Dec 2008 04:53:26 +0000 (15:53 +1100)
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>
arch/powerpc/include/asm/tlbflush.h

index 93716a9f4e162783ba5700c37f87a641da07fbfd..333c24b543795c5b38142f0fca2cd6ba41826ec2 100644 (file)
@@ -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);