]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/fpu: Fix the 'nofxsr' boot parameter to also clear X86_FEATURE_FXSR_OPT
authorIngo Molnar <mingo@kernel.org>
Tue, 5 May 2015 09:43:02 +0000 (11:43 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:48:12 +0000 (15:48 +0200)
commitd364a7656c1855c940dfa4baf4ebcc3c6a9e6fd2
tree11d4d9bb8038d9d412698661dca4970bd3741ed6
parente1884d69f643c743806ebb9bc9292863ef39e894
x86/fpu: Fix the 'nofxsr' boot parameter to also clear X86_FEATURE_FXSR_OPT

I tried to simulate an ancient CPU via this option, and
found that it still has fxsr_opt enabled, confusing the
FPU code.

Make the 'nofxsr' option also clear FXSR_OPT flag.

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
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/cpu/common.c