diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-10-14 00:56:45 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-10-17 18:14:57 +0300 |
commit | 73e3a7d2a7c3be29a5a22b85026f6cfa5664267f (patch) | |
tree | 855314cb66061aadba276c9570d5bffaf50d212c /scripts/patch-kernel | |
parent | ccb18db2ab9d923df07e7495123fe5fb02329713 (diff) | |
download | linux-73e3a7d2a7c3be29a5a22b85026f6cfa5664267f.tar.xz |
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 <ak@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20171013215645.23166-6-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions