summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/fpu/bugs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/fpu/bugs.c')
-rw-r--r--arch/x86/kernel/fpu/bugs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/fpu/bugs.c b/arch/x86/kernel/fpu/bugs.c
index dd9ca9b60ff3..224b5ec52195 100644
--- a/arch/x86/kernel/fpu/bugs.c
+++ b/arch/x86/kernel/fpu/bugs.c
@@ -66,6 +66,6 @@ void __init fpu__init_check_bugs(void)
* kernel_fpu_begin/end() in check_fpu() relies on the patched
* alternative instructions.
*/
- if (cpu_has_fpu)
+ if (boot_cpu_has(X86_FEATURE_FPU))
check_fpu();
}
OpenPOWER on IntegriCloud