From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: From: Benjamin Herrenschmidt Date: Thu, 04 Dec 2008 16:41:44 +1100 Subject: [PATCH 1/3] powerpc: Add local_flush_tlb_mm() to SW loaded TLB implementations Message-Id: <20081204054223.3F136DDE08@ozlabs.org> Cc: Kumar Gala List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This adds a local_flush_tlb_mm() call as a pre-requisite for some SMP work for BookE processors Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/tlbflush.h | 5 +++++ 1 file changed, 5 insertions(+) --- 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);