aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2011-05-08 17:20:19 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-05-19 00:30:42 -0400
commitba00ce1d6e08ad06f19f2ac53fd5c60bbe3fbeeb (patch)
treedd0eca5139eb0a2fe55fcfa60feb1f3d03763360 /arch/powerpc
parentd988f0e3f84cb8a4f85ccdbca6f6fefcc37bedcb (diff)
powerpc: Remove static branch hint in giveup_altivec
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> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/vector.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/vector.S b/arch/powerpc/kernel/vector.S
index 9de6f396cf85..4d5a3edff49e 100644
--- a/arch/powerpc/kernel/vector.S
+++ b/arch/powerpc/kernel/vector.S
@@ -102,7 +102,7 @@ _GLOBAL(giveup_altivec)
102 MTMSRD(r5) /* enable use of VMX now */ 102 MTMSRD(r5) /* enable use of VMX now */
103 isync 103 isync
104 PPC_LCMPI 0,r3,0 104 PPC_LCMPI 0,r3,0
105 beqlr- /* if no previous owner, done */ 105 beqlr /* if no previous owner, done */
106 addi r3,r3,THREAD /* want THREAD of task */ 106 addi r3,r3,THREAD /* want THREAD of task */
107 PPC_LL r5,PT_REGS(r3) 107 PPC_LL r5,PT_REGS(r3)
108 PPC_LCMPI 0,r5,0 108 PPC_LCMPI 0,r5,0