From: Benjamin Herrenschmidt Date: Sun, 14 Dec 2008 19:44:24 +0000 (+0000) Subject: powerpc/mm: Add local_flush_tlb_mm() to SW loaded TLB implementations X-Git-Tag: v3.0~11525^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a37a3fd7f12d8f9f720cceec84e23152e116668;p=platform%2Fkernel%2Flinux-amlogic.git 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 Acked-by: Kumar Gala Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/include/asm/tlbflush.h b/arch/powerpc/include/asm/tlbflush.h index 93716a9..333c24b 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);