Re: [patch] correctly report NR_BANKS in mce_64.c

Ingo Molnar
2008-06-18T08:31:54Z

* Pavel Machek <pavel@suse.cz> wrote:

> From: Daniel Rahn <Daniel.Rahn@novell.com>
>
> 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>

applied to tip/x86/mce, thanks Pavel.

[ There was a recent crossing commit that made your patch not apply
cleanly (8edc5cc5ec8 from May 12), i fixed up the impact manually. ]

Ingo