x86/fpu: Move !FPU check ingo fpu__init_system_early_generic()
authorIngo Molnar <mingo@kernel.org>
Sun, 26 Apr 2015 12:43:44 +0000 (14:43 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:45 +0000 (15:47 +0200)
commite83ab9ad97a702917cb018e6c5a7d1176ff95305
treecebcf8d0f0e04ea57b22f5b3c056ad6ca4fc0856
parent2e2f3da7714f323a0db65baa19b2b8110cc23f95
x86/fpu: Move !FPU check ingo fpu__init_system_early_generic()

There's a !FPU related sanity check in fpu__init_cpu_generic(),
which is executed on every CPU onlining - even though we should do
this only once, and during system init.

Move this check to fpu__init_system_early_generic().

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