s390/vx: add support functions for in-kernel FPU use
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Wed, 18 Feb 2015 13:46:00 +0000 (14:46 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 14 Jun 2016 14:54:11 +0000 (16:54 +0200)
commit04864808029e59ea1bf075c756a0f35c8398fc11
tree266b3ce8c6c7d6f3389778ffafb4112b528114b0
parentde3fa841e429de7e288facf9b642948677fac581
s390/vx: add support functions for in-kernel FPU use

Introduce the kernel_fpu_begin() and kernel_fpu_end() function
to enclose any in-kernel use of FPU instructions and registers.
In enclosed sections, you can perform floating-point or vector
(SIMD) computations.  The functions take care of saving and
restoring FPU register contents and controls.

For usage details, see the guidelines in arch/s390/include/asm/fpu/api.h

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/fpu/api.h
arch/s390/include/asm/fpu/types.h
arch/s390/kernel/Makefile
arch/s390/kernel/fpu.c [new file with mode: 0644]