summaryrefslogtreecommitdiffstats
path: root/drivers/edac/skx_edac.c
diff options
context:
space:
mode:
authorDave Hansen <dave.hansen@intel.com>2016-09-29 13:43:21 -0700
committerBorislav Petkov <bp@suse.de>2016-10-19 12:32:40 +0200
commit20f4d69243785167449e6e765ce9f2a7b097ac45 (patch)
tree8a640aa102a60a0d0c22b8f667af9850cf0de279 /drivers/edac/skx_edac.c
parent08328814256d888634ff15ba8fb67e2ae4340b64 (diff)
downloadop-kernel-dev-20f4d69243785167449e6e765ce9f2a7b097ac45.zip
op-kernel-dev-20f4d69243785167449e6e765ce9f2a7b097ac45.tar.gz
EDAC, {sb,skx}_edac: Use Intel model macros instead of open-coding them
We now have symbolic names for a bunch of Intel CPU models via asm/intel-family.h. The original conversion missed the EDAC drivers. Convert them. Signed-off-by: Dave Hansen <dave.hansen@intel.com> Cc: Tony Luck <tony.luck@intel.com> Cc: linux-edac <linux-edac@vger.kernel.org> Link: http://lkml.kernel.org/r/20160929204321.9FAE5F84@viggo.jf.intel.com [ Remove comment, macro name is descriptive enough. ] Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/skx_edac.c')
-rw-r--r--drivers/edac/skx_edac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/edac/skx_edac.c b/drivers/edac/skx_edac.c
index 0ff4878..f3b3d3b 100644
--- a/drivers/edac/skx_edac.c
+++ b/drivers/edac/skx_edac.c
@@ -25,6 +25,7 @@
#include <linux/math64.h>
#include <linux/mod_devicetable.h>
#include <asm/cpu_device_id.h>
+#include <asm/intel-family.h>
#include <asm/processor.h>
#include <asm/mce.h>
@@ -263,7 +264,7 @@ fail:
}
const struct x86_cpu_id skx_cpuids[] = {
- { X86_VENDOR_INTEL, 6, 0x55, 0, 0 }, /* Skylake */
+ { X86_VENDOR_INTEL, 6, INTEL_FAM6_SKYLAKE_X, 0, 0 },
{ }
};
MODULE_DEVICE_TABLE(x86cpu, skx_cpuids);
OpenPOWER on IntegriCloud