X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-i386%2Fhw_irq.h;fp=include%2Fasm-i386%2Fhw_irq.h;h=622815bf3243e00306774bbea1ab01e2bc2a2f3e;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=87e5a351d8812b369bf1fc88187214d947d87fa9;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/asm-i386/hw_irq.h b/include/asm-i386/hw_irq.h index 87e5a351d..622815bf3 100644 --- a/include/asm-i386/hw_irq.h +++ b/include/asm-i386/hw_irq.h @@ -12,6 +12,7 @@ * */ +#include #include #include #include @@ -19,8 +20,6 @@ struct hw_interrupt_type; -#define NMI_VECTOR 0x02 - /* * Various low-level irq details needed by irq.c, process.c, * time.c, io_apic.c and smp.c @@ -69,4 +68,14 @@ extern atomic_t irq_mis_count; #define IO_APIC_IRQ(x) (((x) >= 16) || ((1<<(x)) & io_apic_irqs)) +#if defined(CONFIG_X86_IO_APIC) +static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i) +{ + if (IO_APIC_IRQ(i)) + send_IPI_self(IO_APIC_VECTOR(i)); +} +#else +static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i) {} +#endif + #endif /* _ASM_HW_IRQ_H */