]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86, mce, cmci: disable CMCI on rebooting
authorAndi Kleen <andi@firstfloor.org>
Thu, 12 Feb 2009 12:49:37 +0000 (13:49 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 24 Feb 2009 21:41:01 +0000 (13:41 -0800)
Impact: Avoids confusing other OSes.

Disable the CMCI vector on reboot to avoid confusing other OS.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/apic.c

index 570f36e44e59671d7bdc0722a2370f1e8633fbe4..648676f0b50a77309179146c63f7ba0173ac3890 100644 (file)
@@ -868,6 +868,14 @@ void clear_local_APIC(void)
                apic_write(APIC_LVTTHMR, v | APIC_LVT_MASKED);
        }
 #endif
+#ifdef CONFIG_X86_MCE_INTEL
+       if (maxlvt >= 6) {
+               v = apic_read(APIC_LVTCMCI);
+               if (!(v & APIC_LVT_MASKED))
+                       apic_write(APIC_LVTCMCI, v | APIC_LVT_MASKED);
+       }
+#endif
+
        /*
         * Clean APIC state for other OSs:
         */