x86, trace: Introduce entering/exiting_irq()
[deliverable/linux.git] / arch / x86 / kernel / cpu / mcheck / therm_throt.c
index 47a1870279aadc5607171737c0df7c3f54d2b25f..f6b35f2a6a372952c02117b7996468fd7fb9bdf3 100644 (file)
@@ -378,15 +378,17 @@ static void unexpected_thermal_interrupt(void)
 
 static void (*smp_thermal_vector)(void) = unexpected_thermal_interrupt;
 
-asmlinkage void smp_thermal_interrupt(struct pt_regs *regs)
+static inline void __smp_thermal_interrupt(void)
 {
-       irq_enter();
-       exit_idle();
        inc_irq_stat(irq_thermal_count);
        smp_thermal_vector();
-       irq_exit();
-       /* Ack only at the end to avoid potential reentry */
-       ack_APIC_irq();
+}
+
+asmlinkage void smp_thermal_interrupt(struct pt_regs *regs)
+{
+       entering_irq();
+       __smp_thermal_interrupt();
+       exiting_ack_irq();
 }
 
 /* Thermal monitoring depends on APIC, ACPI and clock modulation */
This page took 0.026053 seconds and 5 git commands to generate.