x86/mce: Reduce boot-time logspam
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Feb 2014 08:30:59 +0000 (09:30 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Feb 2014 08:30:59 +0000 (09:30 +0100)
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>
xen/arch/x86/cpu/mcheck/mce.c

index b375ef700940e9bf4ea3af4e58b5a93cf68a2736..af6f0bea06308fc48543e2bc05b5781c82977bf3 100644 (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;
     }