]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/x86/include/asm/i387.h
x86, xsave: Use xsaveopt in context-switch path when supported
[mv-sheeva.git] / arch / x86 / include / asm / i387.h
index bb370fd0a1c2a75761637ca35c064bb27111df71..59bd93ac7fefd1f4284e7ba5e04df8089eea278b 100644 (file)
@@ -60,7 +60,7 @@ extern int restore_i387_xstate_ia32(void __user *buf);
 
 static __always_inline __pure bool use_xsaveopt(void)
 {
-       return 0;
+       return static_cpu_has(X86_FEATURE_XSAVEOPT);
 }
 
 static __always_inline __pure bool use_xsave(void)