x86, fpu: Extend the use of static_cpu_has_safe
authorMatt Fleming <matt.fleming@intel.com>
Thu, 27 Mar 2014 22:10:40 +0000 (15:10 -0700)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 17 Apr 2014 12:26:31 +0000 (13:26 +0100)
commitc6b406919288a617815f710175da20f3fca72065
treeb89413278db10c9b0b10f579356268937800e088
parent62fa6e69a436f662090f3996538adb9e568817f6
x86, fpu: Extend the use of static_cpu_has_safe

It may be necessary to save and restore the FPU context during EFI runtime
system services calls. However, this may happen during boot and before
alternatives have run. Thus, we need to use static_cpu_has_safe instead.

The rationale behind the use of static_cpu_has_safe is the same as in
commit 5f8c4218148822fde6ee ("x86, fpu: Use static_cpu_has_safe
before alternatives") by Borislav Petkov.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Cc: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/fpu-internal.h