Skip to content

Commit

Permalink
x86, mce: print number of MCE banks
Browse files Browse the repository at this point in the history
The number of MCE banks supported by a CPU is a useful number to know,
so print it out during CPU initialization.

[ Impact: add printout ]

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
Ingo Molnar authored and H. Peter Anvin committed May 28, 2009
1 parent cb491fc commit b659294
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ static int mce_cap_init(void)

rdmsrl(MSR_IA32_MCG_CAP, cap);
b = cap & 0xff;
printk(KERN_INFO "mce: CPU supports %d MCE banks\n", b);

if (b > MAX_NR_BANKS) {
printk(KERN_WARNING
"MCE: Using only %u machine check banks out of %u\n",
Expand Down Expand Up @@ -1287,6 +1289,7 @@ void mcheck_init(struct cpuinfo_x86 *c)
default:
break;
}
printk(KERN_INFO "mce: CPU supports %d MCE banks\n", nr_mce_banks);
}

static int __init mcheck_disable(char *str)
Expand Down

0 comments on commit b659294

Please sign in to comment.