irqchip: Fix dependencies for archs w/o HAS_IOMEM
[linux/fpc-iii.git] / arch / x86 / kernel / cpu / mcheck / threshold.c
blob7245980186eea047e643af5010e1509bfc991632
1 /*
2 * Common corrected MCE threshold handler code:
3 */
4 #include <linux/interrupt.h>
5 #include <linux/kernel.h>
7 #include <asm/irq_vectors.h>
8 #include <asm/apic.h>
9 #include <asm/idle.h>
10 #include <asm/mce.h>
11 #include <asm/trace/irq_vectors.h>
13 static void default_threshold_interrupt(void)
15 printk(KERN_ERR "Unexpected threshold interrupt at vector %x\n",
16 THRESHOLD_APIC_VECTOR);
19 void (*mce_threshold_vector)(void) = default_threshold_interrupt;
21 static inline void __smp_threshold_interrupt(void)
23 inc_irq_stat(irq_threshold_count);
24 mce_threshold_vector();
27 asmlinkage __visible void smp_threshold_interrupt(void)
29 entering_irq();
30 __smp_threshold_interrupt();
31 exiting_ack_irq();
34 asmlinkage __visible void smp_trace_threshold_interrupt(void)
36 entering_irq();
37 trace_threshold_apic_entry(THRESHOLD_APIC_VECTOR);
38 __smp_threshold_interrupt();
39 trace_threshold_apic_exit(THRESHOLD_APIC_VECTOR);
40 exiting_ack_irq();