x86/fpu: Do CLTS fpu__init_system()
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)
commit530b37e43ce3f0bb9969308c0a64901b442f8e0a
tree0c6090a2620eff48bdbeed2d631ad2a29e6a018a
parent011545b570be22191047d07299515c1d711eeb38
x86/fpu: Do CLTS fpu__init_system()

mxcsr_feature_mask_init() depends on TS being cleared, as it executes
an FXSAVE instruction.

After later changes we will move the TS setup into fpu__init_cpu(),
which will interact with this - so clear the TS flag explicitly.

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