linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Remove static branch hint in giveup_altivec
@ 2011-05-09  7:20 Anton Blanchard
  0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2011-05-09  7:20 UTC (permalink / raw)
  To: benh, linuxppc-dev


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 <anton@samba.org>
---

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-09  7:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-09  7:20 [PATCH] powerpc: Remove static branch hint in giveup_altivec Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).