Skip to content

Commit

Permalink
edac, mce: correct corenum reporting
Browse files Browse the repository at this point in the history
Fix core number reporting with NB MCEs.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Borislav Petkov committed Dec 15, 2009
1 parent f405425 commit 35d8069
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/edac/edac_mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,9 @@ void amd_decode_nb_mce(int node_id, struct err_regs *regs, int handle_errors)
if (regs->nbsh & K8_NBSH_ERR_CPU_VAL)
pr_cont(", core: %u\n", (u8)(regs->nbsh & 0xf));
} else {
pr_cont(", core: %d\n", ilog2((regs->nbsh & 0xf)));
pr_cont(", core: %d\n", fls((regs->nbsh & 0xf) - 1));
}


pr_emerg("%s.\n", EXT_ERR_MSG(xec));

if (BUS_ERROR(ec) && nb_bus_decoder)
Expand Down

0 comments on commit 35d8069

Please sign in to comment.