x86/fpu: Make setup_init_fpu_buf() run-once explicitly
authorIngo Molnar <mingo@kernel.org>
Sat, 25 Apr 2015 03:27:26 +0000 (05:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:38 +0000 (15:47 +0200)
commit26b1f5d05a81a0e60eed718d2d073f050b0afc8f
tree110f58631c3d610d431efe0a1ee5092e5a621dba
parent966ece619eaeae9b5cb6cede7fe6303b7031a51f
x86/fpu: Make setup_init_fpu_buf() run-once explicitly

Remove the dependency on the init_xstate_buf == NULL check to
implement once-per-bootup logic in eager_fpu_init(), by making
setup_init_fpu_buf() run once per bootup explicitly.

This is in preparation to make init_xstate_buf statically
allocated.

The various boot-once quirks in the FPU init code will be removed
in a later cleanup stage.

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