From: Anton Blanchard Date: Sun, 8 May 2011 21:20:19 +0000 (+0000) Subject: powerpc: Remove static branch hint in giveup_altivec X-Git-Tag: upstream/snapshot3+hdmi~10394^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba00ce1d6e08ad06f19f2ac53fd5c60bbe3fbeeb;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/vector.S b/arch/powerpc/kernel/vector.S index 9de6f39..4d5a3ed 100644 --- a/arch/powerpc/kernel/vector.S +++ b/arch/powerpc/kernel/vector.S @@ -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