x86/fpu: Move legacy check to fpu__init_system_xstate()
authorIngo Molnar <mingo@kernel.org>
Sat, 25 Apr 2015 04:47:24 +0000 (06:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:40 +0000 (15:47 +0200)
commite9dbfd673a9cc9d3ef90e3ea4e136a833dab3674
tree8cc4f7352336f3afe652580e456c430dc4ab163e
parente84611fc96c67d3a073e327be44d0f9ee3e981ef
x86/fpu: Move legacy check to fpu__init_system_xstate()

Now that legacy code can execute fpu__init_cpu_xstate() in
xsave_init(), we can move the once per boot legacy check into
fpu__init_system_xstate(), where it belongs.

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