aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/hw_irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/hw_irq.h')
-rw-r--r--include/asm-i386/hw_irq.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/asm-i386/hw_irq.h b/include/asm-i386/hw_irq.h
index 622815bf324..87e5a351d88 100644
--- a/include/asm-i386/hw_irq.h
+++ b/include/asm-i386/hw_irq.h
@@ -12,7 +12,6 @@
12 * <tomsoft@informatik.tu-chemnitz.de> 12 * <tomsoft@informatik.tu-chemnitz.de>
13 */ 13 */
14 14
15#include <linux/config.h>
16#include <linux/profile.h> 15#include <linux/profile.h>
17#include <asm/atomic.h> 16#include <asm/atomic.h>
18#include <asm/irq.h> 17#include <asm/irq.h>
@@ -20,6 +19,8 @@
20 19
21struct hw_interrupt_type; 20struct hw_interrupt_type;
22 21
22#define NMI_VECTOR 0x02
23
23/* 24/*
24 * Various low-level irq details needed by irq.c, process.c, 25 * Various low-level irq details needed by irq.c, process.c,
25 * time.c, io_apic.c and smp.c 26 * time.c, io_apic.c and smp.c
@@ -68,14 +69,4 @@ extern atomic_t irq_mis_count;
68 69
69#define IO_APIC_IRQ(x) (((x) >= 16) || ((1<<(x)) & io_apic_irqs)) 70#define IO_APIC_IRQ(x) (((x) >= 16) || ((1<<(x)) & io_apic_irqs))
70 71
71#if defined(CONFIG_X86_IO_APIC)
72static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i)
73{
74 if (IO_APIC_IRQ(i))
75 send_IPI_self(IO_APIC_VECTOR(i));
76}
77#else
78static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i) {}
79#endif
80
81#endif /* _ASM_HW_IRQ_H */ 72#endif /* _ASM_HW_IRQ_H */