|
@@ -1390,10 +1390,11 @@ static int lapic_suspend(struct sys_device *dev, pm_message_t state)
|
|
|
apic_pm_state.apic_lvterr = apic_read(APIC_LVTERR);
|
|
|
apic_pm_state.apic_tmict = apic_read(APIC_TMICT);
|
|
|
apic_pm_state.apic_tdcr = apic_read(APIC_TDCR);
|
|
|
-#ifdef CONFIG_X86_MCE_INTEL
|
|
|
+#if defined(CONFIG_X86_MCE_P4THERMAL) || defined(CONFIG_X86_MCE_INTEL)
|
|
|
if (maxlvt >= 5)
|
|
|
apic_pm_state.apic_thmr = apic_read(APIC_LVTTHMR);
|
|
|
#endif
|
|
|
+
|
|
|
local_irq_save(flags);
|
|
|
disable_local_APIC();
|
|
|
local_irq_restore(flags);
|