diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-03-23 14:56:33 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-23 14:56:33 +0100 |
commit | 85ae01b2da0ed606a2e8d840aadef90fd30220a1 (patch) | |
tree | f9eaa974b88b9db09dab9e5f6876e87d12543fe4 /drivers/edac/edac_mce_amd.c | |
parent | 6407d474e6ae6a798fa5ba40b32f508a52de80ff (diff) | |
parent | 306ff3e473a970f88680e8355c0900fcab0357e2 (diff) | |
download | kernel_samsung_aries-85ae01b2da0ed606a2e8d840aadef90fd30220a1.zip kernel_samsung_aries-85ae01b2da0ed606a2e8d840aadef90fd30220a1.tar.gz kernel_samsung_aries-85ae01b2da0ed606a2e8d840aadef90fd30220a1.tar.bz2 |
Merge remote branch 'alsa/devel' into topic/usb
Diffstat (limited to 'drivers/edac/edac_mce_amd.c')
-rw-r--r-- | drivers/edac/edac_mce_amd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/edac/edac_mce_amd.c b/drivers/edac/edac_mce_amd.c index 8fc91a0..f5b6d9f 100644 --- a/drivers/edac/edac_mce_amd.c +++ b/drivers/edac/edac_mce_amd.c @@ -316,7 +316,12 @@ 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", fls((regs->nbsh & 0xf) - 1)); + u8 assoc_cpus = regs->nbsh & 0xf; + + if (assoc_cpus > 0) + pr_cont(", core: %d", fls(assoc_cpus) - 1); + + pr_cont("\n"); } pr_emerg("%s.\n", EXT_ERR_MSG(xec)); |