x86/fpu: Move all eager-fpu setup code to eager_fpu_init()
authorIngo Molnar <mingo@kernel.org>
Sat, 25 Apr 2015 07:02:51 +0000 (09:02 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:41 +0000 (15:47 +0200)
commit89abbe01a46a9f47f8d07e2817704bfcbd8f6f9e
tree368cec3293b8ca122670b5d841930549d81f690b
parenta5cb56e9a68aa0e19281ad93f1fce6e6802e3206
x86/fpu: Move all eager-fpu setup code to eager_fpu_init()

The FPU context switch type (lazy or eager) setup code is split into
two places currently - move it all to eager_fpu_init().

Note that the code we move will now be executed on non-xstate CPUs
as well, but this should be safe: both xfeatures_mask and
cpu_has_xsaveopt is 0 there.

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/kernel/fpu/xsave.c