x86/fpu: Remove task_disable_lazy_fpu_restore()
authorIngo Molnar <mingo@kernel.org>
Thu, 23 Apr 2015 15:08:41 +0000 (17:08 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:26 +0000 (15:47 +0200)
commiteb6a3251bfe34f327570993e9a95dbf3a592b912
tree2d0f44201bcef45fc324a7c11c85bf7449dad2de
parentca6787ba0fcc875cfb06dc2a538ac23210b7d251
x86/fpu: Remove task_disable_lazy_fpu_restore()

Replace task_disable_lazy_fpu_restore() with easier to read
open-coded uses: we already update the fpu->last_cpu field
explicitly in other cases.

(This also removes yet another task_struct using FPU method.)

Better explain the fpu::last_cpu field in the structure definition.

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>
arch/x86/include/asm/fpu-internal.h
arch/x86/include/asm/fpu/types.h
arch/x86/kernel/fpu/core.c