From patchwork Mon May 9 07:20:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 94738 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id C83FD100934 for ; Mon, 9 May 2011 17:20:29 +1000 (EST) Received: by ozlabs.org (Postfix) id 0ABF9B6FEC; Mon, 9 May 2011 17:20:21 +1000 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from kryten (ppp121-44-173-204.lns20.syd7.internode.on.net [121.44.173.204]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPSA id D7B71B6F6B; Mon, 9 May 2011 17:20:20 +1000 (EST) Date: Mon, 9 May 2011 17:20:19 +1000 From: Anton Blanchard To: benh@kernel.crashing.org, linuxppc-dev@ozlabs.org Subject: [PATCH] powerpc: Remove static branch hint in giveup_altivec Message-ID: <20110509172019.6733177e@kryten> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; i686-pc-linux-gnu) Mime-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org A static branch hint will override dynamic branch prediction on recent POWER CPUs. Since we are about to use more altivec in the kernel remove the static hint in giveup_altivec that assumes a userspace task is using altivec. Signed-off-by: Anton Blanchard Index: linux-powerpc/arch/powerpc/kernel/vector.S =================================================================== --- linux-powerpc.orig/arch/powerpc/kernel/vector.S 2011-04-24 12:38:26.329650611 +1000 +++ linux-powerpc/arch/powerpc/kernel/vector.S 2011-04-24 12:39:27.850785617 +1000 @@ -102,7 +102,7 @@ _GLOBAL(giveup_altivec) MTMSRD(r5) /* enable use of VMX now */ isync PPC_LCMPI 0,r3,0 - beqlr- /* if no previous owner, done */ + beqlr /* if no previous owner, done */ addi r3,r3,THREAD /* want THREAD of task */ PPC_LL r5,PT_REGS(r3) PPC_LCMPI 0,r5,0