]> err.no Git - linux-2.6/commit
x86: correctly report NR_BANKS in mce_64.c
authorDaniel Rahn <Daniel.Rahn@novell.com>
Fri, 6 Jun 2008 07:42:36 +0000 (09:42 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 18 Jun 2008 08:29:58 +0000 (10:29 +0200)
commitb4b3bd96f26586e53ab5482f1869221dd1b5ac36
treed8e9bb89aa5c78e48d84d3ed1222b1d7dd1d4bc4
parent8edc5cc5ec880c96de8e6686fb0d7a5231e91c05
x86: correctly report NR_BANKS in mce_64.c

attached is a no-brainer that makes kernel correctly report
NR_BANKS for MCE. We are right now limited to NR_BANKS==6, but the
error message will use the available number of banks instead of the
defined maximum.

For a Nehalem based system it will print:

"MCE: warning: using only 9 banks"

while the correct message would be

"MCE: warning: using only 6 banks"

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mcheck/mce_64.c