summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/cpu_device_id.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2020-05-05 20:25:08 +0300
committerBorislav Petkov <bp@suse.de>2020-05-07 14:48:05 +0300
commitd8422f6bb052b44db923a28afd8ceaef63d38d26 (patch)
treef47af690f10d9c6f064d4b5be65de4f3f6fc0fad /arch/x86/include/asm/cpu_device_id.h
parent51485635ebc25267ebab548a1bce43f823d9c0c5 (diff)
downloadlinux-d8422f6bb052b44db923a28afd8ceaef63d38d26.tar.xz
x86/cpu: Add a X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS() macro
... to match Intel family 6 CPUs with steppings. Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Mark Gross <mgross@linux.intel.com> Link: https://lkml.kernel.org/r/20200506071516.25445-3-bp@alien8.de
Diffstat (limited to 'arch/x86/include/asm/cpu_device_id.h')
-rw-r--r--arch/x86/include/asm/cpu_device_id.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cpu_device_id.h b/arch/x86/include/asm/cpu_device_id.h
index 10426cd56dca..eb8fcede9e3b 100644
--- a/arch/x86/include/asm/cpu_device_id.h
+++ b/arch/x86/include/asm/cpu_device_id.h
@@ -160,6 +160,10 @@
#define X86_MATCH_INTEL_FAM6_MODEL(model, data) \
X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, INTEL_FAM6_##model, data)
+#define X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(model, steppings, data) \
+ X86_MATCH_VENDOR_FAM_MODEL_STEPPINGS_FEATURE(INTEL, 6, INTEL_FAM6_##model, \
+ steppings, X86_FEATURE_ANY, data)
+
/*
* Match specific microcode revisions.
*