summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2011-06-22 12:40:06 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-31 21:10:05 +0400
commit5034086b72e4e2d42f0db4b4ebb0fe0129ebdeae (patch)
tree9d57dd59fa835d332b165b7b714270ba40d8ad7a /drivers
parent27100db0e0d381d24b6f3cb1a4f439996e7c00c8 (diff)
downloadlinux-5034086b72e4e2d42f0db4b4ebb0fe0129ebdeae.tar.xz
EDAC i7core: Use mce socketid for better compatibility
mce->socketid and cpu_data(mce->cpu).phys_proc_id are the same, compare with mce_setup (in mce.c): m->cpu = m->extcpu = smp_processor_id(); ... m->socketid = cpu_data(m->extcpu).phys_proc_id; This makes it easier for example for XEN patches to hook into the MCE subsystem. Compile tested on x86_64. Signed-off-by: Thomas Renninger <trenn@suse.de> CC: JBeulich@novell.com CC: linux-edac@vger.kernel.org CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/edac/i7core_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index aeb01f42ffef..764207ed6d44 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -1917,7 +1917,7 @@ static int i7core_mce_check_error(void *priv, struct mce *mce)
#ifdef CONFIG_SMP
/* Only handle if it is the right mc controller */
- if (cpu_data(mce->cpu).phys_proc_id != pvt->i7core_dev->socket)
+ if (mce->socketid != pvt->i7core_dev->socket)
return 0;
#endif