diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-04-23 17:43:27 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-05-19 15:47:27 +0200 |
commit | 384a23f939912d368d2b42e1b41992be09aaf266 (patch) | |
tree | 76ba70899602452d2deea2c656841a5306649f4c /arch/x86/include/asm/fpu-internal.h | |
parent | x86/fpu: Use 'struct fpu' in switch_fpu_prepare() (diff) | |
download | linux-384a23f939912d368d2b42e1b41992be09aaf266.tar.xz linux-384a23f939912d368d2b42e1b41992be09aaf266.zip |
x86/fpu: Use 'struct fpu' in switch_fpu_finish()
Migrate this function to pure 'struct fpu' usage.
Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/fpu-internal.h')
-rw-r--r-- | arch/x86/include/asm/fpu-internal.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/include/asm/fpu-internal.h b/arch/x86/include/asm/fpu-internal.h index 60d2c6f376f3..5fd9b3f9be0f 100644 --- a/arch/x86/include/asm/fpu-internal.h +++ b/arch/x86/include/asm/fpu-internal.h @@ -451,11 +451,9 @@ switch_fpu_prepare(struct fpu *old_fpu, struct fpu *new_fpu, int cpu) * state - all we need to do is to conditionally restore the register * state itself. */ -static inline void switch_fpu_finish(struct task_struct *new, fpu_switch_t fpu) +static inline void switch_fpu_finish(struct fpu *new_fpu, fpu_switch_t fpu_switch) { - struct fpu *new_fpu = &new->thread.fpu; - - if (fpu.preload) { + if (fpu_switch.preload) { if (unlikely(restore_fpu_checking(new_fpu))) fpu_reset_state(new_fpu); } |