x86/mce: Reduce boot-time logspam

When booting with "no-mce", the user does not need to be told that "MCE
support [was] disabled by bootparam" for each cpu.  Furthermore, a file:line
reference is unnecessary.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Andrew Cooper authored and Jan Beulich committed 2014-02-25 09:30:59 +01:00
1 parent 6d27a53772
commit a5ab9c9fa2
1 file changed
+4 -2
+4 -2
View File
@@ -729,8 +729,10 @@ void mcheck_init(struct cpuinfo_x86 *c, bool_t bsp)
{
enum mcheck_type inited = mcheck_none;
if (mce_disabled == 1) {
dprintk(XENLOG_INFO, "MCE support disabled by bootparam\n");
if ( mce_disabled )
{
if ( bsp )
printk(XENLOG_INFO "MCE support disabled by bootparam\n");
return;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.