summaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authoryu-cheng yu <yu-cheng.yu@intel.com>2016-01-06 14:24:51 -0800
committerIngo Molnar <mingo@kernel.org>2016-01-12 11:51:20 +0100
commit4f81cbafcce2c603db7865e9d0e461f7947d77d4 (patch)
tree24f2f8e575902dd525c2eb89d6c086ab3cf6b655 /arch/x86/include
parentb500f77baea576b74c3961613b67eaffcdf65c57 (diff)
downloadlinux-4f81cbafcce2c603db7865e9d0e461f7947d77d4.tar.gz
linux-4f81cbafcce2c603db7865e9d0e461f7947d77d4.tar.xz
x86/fpu: Fix early FPU command-line parsing
The function fpu__init_system() is executed before parse_early_param(). This causes wrong FPU configuration. This patch fixes this issue by parsing boot_command_line in the beginning of fpu__init_system(). With all four patches in this series, each parameter disables features as the following: eagerfpu=off: eagerfpu, avx, avx2, avx512, mpx no387: fpu nofxsr: fxsr, fxsropt, xmm noxsave: xsave, xsaveopt, xsaves, xsavec, avx, avx2, avx512, mpx, xgetbv1 noxsaveopt: xsaveopt noxsaves: xsaves Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Borislav Petkov <bp@suse.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: Quentin Casasnovas <quentin.casasnovas@oracle.com> Cc: Ravi V. Shankar <ravi.v.shankar@intel.com> Cc: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: yu-cheng yu <yu-cheng.yu@intel.com> Link: http://lkml.kernel.org/r/1452119094-7252-2-git-send-email-yu-cheng.yu@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions