x86, mce: unify smp_thermal_interrupt, prepare mce_intel_64

Break smp_thermal_interrupt() into two functions.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
Hidetoshi Seto 2009-06-15 17:24:09 +09:00 committed by H. Peter Anvin
parent 3adacb70d3
commit 5335612a57

View File

@ -16,19 +16,21 @@
#include <asm/idle.h> #include <asm/idle.h>
#include <asm/therm_throt.h> #include <asm/therm_throt.h>
asmlinkage void smp_thermal_interrupt(void) static void intel_thermal_interrupt(void)
{ {
__u64 msr_val; __u64 msr_val;
ack_APIC_irq();
exit_idle();
irq_enter();
rdmsrl(MSR_IA32_THERM_STATUS, msr_val); rdmsrl(MSR_IA32_THERM_STATUS, msr_val);
if (therm_throt_process(msr_val & THERM_STATUS_PROCHOT)) if (therm_throt_process(msr_val & THERM_STATUS_PROCHOT))
mce_log_therm_throt_event(msr_val); mce_log_therm_throt_event(msr_val);
}
asmlinkage void smp_thermal_interrupt(void)
{
ack_APIC_irq();
exit_idle();
irq_enter();
intel_thermal_interrupt();
inc_irq_stat(irq_thermal_count); inc_irq_stat(irq_thermal_count);
irq_exit(); irq_exit();
} }