diff options
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 437f2c635db6..b40771dd114a 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -176,17 +176,6 @@ typedef struct irq_desc irq_desc_t; | |||
176 | */ | 176 | */ |
177 | #include <asm/hw_irq.h> | 177 | #include <asm/hw_irq.h> |
178 | 178 | ||
179 | /* | ||
180 | * Architectures call this to let the generic IRQ layer | ||
181 | * handle an interrupt: | ||
182 | */ | ||
183 | static inline void generic_handle_irq(unsigned int irq, struct pt_regs *regs) | ||
184 | { | ||
185 | struct irq_desc *desc = irq_desc + irq; | ||
186 | |||
187 | desc->handle_irq(irq, desc, regs); | ||
188 | } | ||
189 | |||
190 | extern int setup_irq(unsigned int irq, struct irqaction *new); | 179 | extern int setup_irq(unsigned int irq, struct irqaction *new); |
191 | 180 | ||
192 | #ifdef CONFIG_GENERIC_HARDIRQS | 181 | #ifdef CONFIG_GENERIC_HARDIRQS |
@@ -324,6 +313,22 @@ handle_irq_name(void fastcall (*handle)(unsigned int, struct irq_desc *, | |||
324 | */ | 313 | */ |
325 | extern fastcall unsigned int __do_IRQ(unsigned int irq, struct pt_regs *regs); | 314 | extern fastcall unsigned int __do_IRQ(unsigned int irq, struct pt_regs *regs); |
326 | 315 | ||
316 | /* | ||
317 | * Architectures call this to let the generic IRQ layer | ||
318 | * handle an interrupt. If the descriptor is attached to an | ||
319 | * irqchip-style controller then we call the ->handle_irq() handler, | ||
320 | * and it calls __do_IRQ() if it's attached to an irqtype-style controller. | ||
321 | */ | ||
322 | static inline void generic_handle_irq(unsigned int irq, struct pt_regs *regs) | ||
323 | { | ||
324 | struct irq_desc *desc = irq_desc + irq; | ||
325 | |||
326 | if (likely(desc->handle_irq)) | ||
327 | desc->handle_irq(irq, desc, regs); | ||
328 | else | ||
329 | __do_IRQ(irq, regs); | ||
330 | } | ||
331 | |||
327 | /* Handling of unhandled and spurious interrupts: */ | 332 | /* Handling of unhandled and spurious interrupts: */ |
328 | extern void note_interrupt(unsigned int irq, struct irq_desc *desc, | 333 | extern void note_interrupt(unsigned int irq, struct irq_desc *desc, |
329 | int action_ret, struct pt_regs *regs); | 334 | int action_ret, struct pt_regs *regs); |