x86/fpu: Do system-wide setup from fpu__detect()
authorIngo Molnar <mingo@kernel.org>
Sat, 25 Apr 2015 06:27:44 +0000 (08:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:43 +0000 (15:47 +0200)
commit067051ccd209623cb56152cf4cb06616ee2bcc5c
tree6bb46bc57a5d7a31e84bdccbc0c399b517fe397c
parent3960fccf2e22c3b3d61bd5a45b6172e66e660d8b
x86/fpu: Do system-wide setup from fpu__detect()

fpu__cpu_init() is called on every CPU, so it is the wrong place
to call fpu__init_system() from. Call it from fpu__detect():
this is early CPU init code, but we already have CPU features detected,
so we can call the system-wide FPU init code from here.

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