diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-08 06:31:27 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-28 12:24:11 -0400 |
commit | b659294b779565c60f5e12ef505328e2b974eb62 (patch) | |
tree | 936cb5516e0286c18ab5cee84d870c0a0bedc94b /arch/x86/kernel/cpu/mcheck/mce.c | |
parent | cb491fca55e5282f0a95ef39c55352e00d6ca75e (diff) |
x86, mce: print number of MCE banks
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>
Diffstat (limited to 'arch/x86/kernel/cpu/mcheck/mce.c')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index ba8dd41a10dc..49c74222359d 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c | |||
@@ -570,6 +570,8 @@ static int mce_cap_init(void) | |||
570 | 570 | ||
571 | rdmsrl(MSR_IA32_MCG_CAP, cap); | 571 | rdmsrl(MSR_IA32_MCG_CAP, cap); |
572 | b = cap & 0xff; | 572 | b = cap & 0xff; |
573 | printk(KERN_INFO "mce: CPU supports %d MCE banks\n", b); | ||
574 | |||
573 | if (b > MAX_NR_BANKS) { | 575 | if (b > MAX_NR_BANKS) { |
574 | printk(KERN_WARNING | 576 | printk(KERN_WARNING |
575 | "MCE: Using only %u machine check banks out of %u\n", | 577 | "MCE: Using only %u machine check banks out of %u\n", |
@@ -1287,6 +1289,7 @@ void mcheck_init(struct cpuinfo_x86 *c) | |||
1287 | default: | 1289 | default: |
1288 | break; | 1290 | break; |
1289 | } | 1291 | } |
1292 | printk(KERN_INFO "mce: CPU supports %d MCE banks\n", nr_mce_banks); | ||
1290 | } | 1293 | } |
1291 | 1294 | ||
1292 | static int __init mcheck_disable(char *str) | 1295 | static int __init mcheck_disable(char *str) |