]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kernel: remove save_fpu_regs() parameter and use __LC_CURRENT instead
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Mon, 29 Jun 2015 14:43:06 +0000 (16:43 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 3 Aug 2015 08:04:37 +0000 (10:04 +0200)
commit6933265b4990f3a438d9bfb55fe831b54986d385
tree524bb68d1e46da8876da38e683b5474a7ec7f7ac
parentff29f8b0873a2be69a71b14f42e8b01855747f99
s390/kernel: remove save_fpu_regs() parameter and use __LC_CURRENT instead

All calls to save_fpu_regs() specify the fpu structure of the current task
pointer as parameter.  The task pointer of the current task can also be
retrieved from the CPU lowcore directly.  Remove the parameter definition,
load the __LC_CURRENT task pointer from the CPU lowcore, and rebase the FPU
structure onto the task structure.  Apply the same approach for the
load_fpu_regs() function.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/fpu-internal.h
arch/s390/include/asm/switch_to.h
arch/s390/kernel/asm-offsets.c
arch/s390/kernel/compat_signal.c
arch/s390/kernel/entry.S
arch/s390/kernel/process.c
arch/s390/kernel/ptrace.c
arch/s390/kernel/signal.c
arch/s390/kernel/traps.c
arch/s390/kvm/kvm-s390.c