summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/fpu/xstate.c
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-06-29 12:04:17 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-06-29 12:04:17 -0700
commit25c69bf35b1a493ab8c8aca28afd9bb9d0d5d26c (patch)
treeb186b8c104e3e94d06dc31d8305c47d6a8995194 /arch/x86/kernel/fpu/xstate.c
parentae8a7e6903c2a6201226b3aabb0d7673c6a5f042 (diff)
parent563a330876f64f5289d0886857947c7bd469f907 (diff)
Merge "Merge android-4.4.138 (07c0138) into msm-4.4"
Diffstat (limited to 'arch/x86/kernel/fpu/xstate.c')
-rw-r--r--arch/x86/kernel/fpu/xstate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c
index 70fc312221fc..3fa200ecca62 100644
--- a/arch/x86/kernel/fpu/xstate.c
+++ b/arch/x86/kernel/fpu/xstate.c
@@ -632,8 +632,7 @@ void __init fpu__init_system_xstate(void)
BUG();
}
- /* Support only the state known to the OS: */
- xfeatures_mask = xfeatures_mask & XCNTXT_MASK;
+ xfeatures_mask &= fpu__get_supported_xfeatures_mask();
/* Enable xstate instructions to be able to continue with initialization: */
fpu__init_cpu_xstate();