powerpc: Move part of giveup_fpu,altivec,spe into c
authorAnton Blanchard <anton@samba.org>
Thu, 29 Oct 2015 00:44:01 +0000 (11:44 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Dec 2015 02:52:25 +0000 (13:52 +1100)
commit98da581e0846f6d932a4bc46a55458140e20478a
tree492f2ebbd22ed1000f2d61aa8ad9a7b3ef5f1a1b
parentb51b1153d0e78a70767441273331d2de066bb929
powerpc: Move part of giveup_fpu,altivec,spe into c

Move the MSR modification into new c functions. Removing it from
the low level functions will allow us to avoid costly MSR writes
by batching them up.

Move the check_if_tm_restore_required() check into these new functions.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/switch_to.h
arch/powerpc/kernel/fpu.S
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/kernel/process.c
arch/powerpc/kernel/vector.S