Skip to content

Commit

Permalink
EDAC i7core: Use mce socketid for better compatibility
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Renninger authored and Mauro Carvalho Chehab committed Oct 31, 2011
1 parent 27100db commit 5034086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5034086

Please sign in to comment.