From patchwork Mon Dec 8 05:40:14 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Herrenschmidt X-Patchwork-Id: 12683 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id D75F4DDF69 for ; Mon, 8 Dec 2008 16:49:27 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: by ozlabs.org (Postfix, from userid 1030) id 3EDD6DDE24; Mon, 8 Dec 2008 16:41:20 +1100 (EST) To: From: Benjamin Herrenschmidt Date: Mon, 08 Dec 2008 16:40:14 +1100 Subject: [PATCH 4/9] powerpc: Add local_flush_tlb_mm() to SW loaded TLB implementations In-Reply-To: <1228714789.103940.266501677728.qpush@grosgo> Message-Id: <20081208054121.3EDD6DDE24@ozlabs.org> Cc: Kumar Gala X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org 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);