]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86: Add more disabled features
authorDave Hansen <dave.hansen@linux.intel.com>
Thu, 11 Sep 2014 21:15:24 +0000 (14:15 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 11 Sep 2014 21:30:17 +0000 (14:30 -0700)
commit9298b815efe500b272e4084ed05eeae7a92b5340
tree7ea33c7d7576125749453b793ccb2143140d14a8
parent381aa07a9b4e1f82969203e9e4863da2a157781d
x86: Add more disabled features

The original motivation for these patches was for an Intel CPU
feature called MPX.  The patch to add a disabled feature for it
will go in with the other parts of the support.

But, in the meantime, there are a few other features than MPX
that we can make assumptions about at compile-time based on
compile options.  Add them to disabled-features.h and check them
with cpu_feature_enabled().

Note that this gets rid of the last things that needed an #ifdef
CONFIG_X86_64 in cpufeature.h.  Yay!

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: http://lkml.kernel.org/r/20140911211524.C0EC332A@viggo.jf.intel.com
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/disabled-features.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/mtrr/main.c