]> git.karo-electronics.de Git - karo-tx-linux.git/commit
EDAC i7core: Use mce socketid for better compatibility
authorThomas Renninger <trenn@suse.de>
Wed, 22 Jun 2011 08:40:06 +0000 (05:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 5 Aug 2011 14:07:03 +0000 (11:07 -0300)
commit14c9a68e354a583bd410976f43aafb2feb17822a
tree45f06223a9b832d1bde614b4325c758bd032b830
parentf84823b375c4ff8325eb137c369ae0252f1dd4ac
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>
drivers/edac/i7core_edac.c