]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/fpu: Remove fpstate_xstate_init_size() boot quirk
authorIngo Molnar <mingo@kernel.org>
Sat, 25 Apr 2015 02:29:26 +0000 (04:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:38 +0000 (15:47 +0200)
commit6a133207587bce64efdd0fda9bea09ed994fa690
tree528c35dedc68ddd00fe34e1bc20b450782c10f1b
parent66af8e276409196abd59e33919f928e4d002d4f8
x86/fpu: Remove fpstate_xstate_init_size() boot quirk

fpstate_xstate_init_size() is called in fpu__cpu_init(), which is
run on every CPU, every time they are brought online.

But we want to call fpstate_xstate_init_size() only once. Move it to
fpu__detect(), which only runs once, on the boot CPU.

Also clean up the flow of fpstate_xstate_init_size() a bit, by
removing a 'return' from the middle of the function.

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