x86, EDAC: Provide function to return NodeId of a CPU

Signed-off-by: Andreas Herrmann <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: H. Peter Anvin <[email protected]>
This commit is contained in:
Andreas Herrmann 2009-09-16 11:33:40 +02:00 • committed by Borislav Petkov
commit 6a8126911a
3 changed files with 13 additions and 1 deletions

View file

@ -405,7 +405,7 @@ void decode_mce(struct mce *m)
regs.nbsh = (u32)(m->status >> 32);
regs.nbeal = (u32) m->addr;
regs.nbeah = (u32)(m->addr >> 32);
node = per_cpu(cpu_llc_id, m->extcpu);
node = amd_get_nb_id(m->extcpu);
amd_decode_nb_mce(node, &regs, 1);
break;