]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Tidy up FPU context switching
authorPaul Burton <paul.burton@imgtec.com>
Mon, 3 Aug 2015 15:49:30 +0000 (08:49 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 3 Sep 2015 10:08:05 +0000 (12:08 +0200)
commit6639955b5f71bbf2b63965a764bb0b5eac7e6201
tree3a7c9ca24e6826642d414bfd6750d94c4eefacb6
parent3f770f87bb63692670b45b73a3b84fe0b6d7ddb3
MIPS: Tidy up FPU context switching

Rather than saving the scalar FP or vector context in the assembly
resume function, reuse the existing C code we have in fpu.h to do
exactly that. This reduces duplication, results in a much easier to read
resume function & should allow the compiler to optimise out more MSA
code due to is_msa_enabled()/cpu_has_msa being known-zero at compile
time for kernels without MSA support.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-kernel@vger.kernel.org
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: Manuel Lauss <manuel.lauss@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/10830/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/fpu.h
arch/mips/include/asm/switch_to.h
arch/mips/kernel/r4k_switch.S