]> Git Repo - linux.git/commit
x86/fpu: Remove the explicit clearing of XSAVE dependent features
authorAndi Kleen <[email protected]>
Fri, 13 Oct 2017 21:56:45 +0000 (14:56 -0700)
committerIngo Molnar <[email protected]>
Tue, 17 Oct 2017 15:14:57 +0000 (17:14 +0200)
commit73e3a7d2a7c3be29a5a22b85026f6cfa5664267f
tree855314cb66061aadba276c9570d5bffaf50d212c
parentccb18db2ab9d923df07e7495123fe5fb02329713
x86/fpu: Remove the explicit clearing of XSAVE dependent features

Clearing a CPU feature with setup_clear_cpu_cap() clears all features
which depend on it. Expressing feature dependencies in one place is
easier to maintain than keeping functions like
fpu__xstate_clear_all_cpu_caps() up to date.

The features which depend on XSAVE have their dependency expressed in the
dependency table, so its sufficient to clear X86_FEATURE_XSAVE.

Remove the explicit clearing of XSAVE dependent features.

Signed-off-by: Andi Kleen <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/fpu/xstate.c
This page took 0.057225 seconds and 4 git commands to generate.