x86/fpu: Pass 'struct fpu' to fpu__restore()
authorIngo Molnar <mingo@kernel.org>
Mon, 4 May 2015 09:49:58 +0000 (11:49 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:48:11 +0000 (15:48 +0200)
commite1884d69f643c743806ebb9bc9292863ef39e894
tree4e4ceeed78219aea8b0cb505b903623b7f300631
parent32231879f66162352fc6f3041c5c2b1d965879b2
x86/fpu: Pass 'struct fpu' to fpu__restore()

This cleans up the call sites and the function a bit,
and also makes it more symmetric with the other high
level FPU state handling functions.

It's still only valid for the current task, as we copy
to the FPU registers of the current CPU.

No change in functionality.

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
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>
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/signal.c
arch/x86/kernel/traps.c
drivers/lguest/x86/core.c