x86/fpu: Set up the legacy FPU init image from fpu__init_system()
authorIngo Molnar <mingo@kernel.org>
Sat, 25 Apr 2015 06:35:53 +0000 (08:35 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:41 +0000 (15:47 +0200)
commit2507e1c03f577173d613d6728329eb220724c577
tree6320b786671fc3519f384f08df6b9a5c2bffdadd
parent429ced50a0e5f863f95b100749043451e1968c4c
x86/fpu: Set up the legacy FPU init image from fpu__init_system()

The legacy FPU init image is used on older CPUs who don't run xstate init.
But the init code is called within setup_init_fpu_buf(), an xstate method.

Move this legacy init out of the xstate code and put it into fpu/init.c.

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