diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2015-06-29 17:43:06 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-08-03 11:04:37 +0300 |
commit | d0164ee20d98847d3c777a0ae90e678e7ac1e416 (patch) | |
tree | 524bb68d1e46da8876da38e683b5474a7ec7f7ac /arch/s390/kernel/process.c | |
parent | 2a01bd1bd3d28d1eef26d5509c95d0923f7dc75c (diff) | |
download | linux-d0164ee20d98847d3c777a0ae90e678e7ac1e416.tar.xz |
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>
Diffstat (limited to 'arch/s390/kernel/process.c')
-rw-r--r-- | arch/s390/kernel/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c index 9cf0063f920e..f2dac9f0799d 100644 --- a/arch/s390/kernel/process.c +++ b/arch/s390/kernel/process.c @@ -104,7 +104,7 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) * The CIF_FPU flag is set in any case to lazy clear or restore a saved * state when switching to a different task or returning to user space. */ - save_fpu_regs(¤t->thread.fpu); + save_fpu_regs(); dst->thread.fpu.fpc = current->thread.fpu.fpc; if (is_vx_task(current)) convert_vx_to_fp(dst->thread.fpu.fprs, @@ -196,7 +196,7 @@ asmlinkage void execve_tail(void) */ int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs) { - save_fpu_regs(¤t->thread.fpu); + save_fpu_regs(); fpregs->fpc = current->thread.fpu.fpc; fpregs->pad = 0; if (is_vx_task(current)) |