summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/fpu.S
diff options
context:
space:
mode:
authorAnton Blanchard2015-10-29 01:44:00 +0100
committerMichael Ellerman2015-12-01 03:52:25 +0100
commitb51b1153d0e78a70767441273331d2de066bb929 (patch)
tree1b41562f57798ca87aa5f363c66cb3c8530e6ebf /arch/powerpc/kernel/fpu.S
parentpowerpc: Create mtmsrd_isync() (diff)
downloadkernel-qcow2-linux-b51b1153d0e78a70767441273331d2de066bb929.tar.gz
kernel-qcow2-linux-b51b1153d0e78a70767441273331d2de066bb929.tar.xz
kernel-qcow2-linux-b51b1153d0e78a70767441273331d2de066bb929.zip
powerpc: Remove NULL task struct pointer checks in FP and vector code
We used to allow giveup_*() to be called with a NULL task struct pointer. Now those cases are handled in the caller we can remove the checks. We can also remove giveup_altivec_notask() which is also unused. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/fpu.S')
-rw-r--r--arch/powerpc/kernel/fpu.S2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/fpu.S b/arch/powerpc/kernel/fpu.S
index 50d2352f2cf4..71bdce284ad9 100644
--- a/arch/powerpc/kernel/fpu.S
+++ b/arch/powerpc/kernel/fpu.S
@@ -173,8 +173,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_VSX)
MTMSRD(r5) /* enable use of fpu now */
SYNC_601
isync
- PPC_LCMPI 0,r3,0
- beqlr- /* if no previous owner, done */
addi r3,r3,THREAD /* want THREAD of task */
PPC_LL r6,THREAD_FPSAVEAREA(r3)
PPC_LL r5,PT_REGS(r3)