diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-09-04 19:45:00 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-09-04 19:45:00 +0100 |
commit | 664399e1fbdceb18da9c9c5534dedd62327c63e8 (patch) | |
tree | edcd0711c9dc15d1ca296b1bab0d85415781276e /include/asm-arm | |
parent | 7801907b8c4a49f8ec033d13a938751114a97a55 (diff) | |
download | linux-664399e1fbdceb18da9c9c5534dedd62327c63e8.tar.gz linux-664399e1fbdceb18da9c9c5534dedd62327c63e8.tar.bz2 linux-664399e1fbdceb18da9c9c5534dedd62327c63e8.zip |
[ARM] Wrap calls to descriptor handlers
This is part of Thomas Gleixner's generic IRQ patch, which converts
ARM to use the generic IRQ subsystem. Here, we wrap calls to
desc->handler() in an inline function, desc_handle_irq(). This
reduces the size of Thomas' patch since the changes become more
localised.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/mach/irq.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-arm/mach/irq.h b/include/asm-arm/mach/irq.h index bc9763db1d37..0ce6ca588d8c 100644 --- a/include/asm-arm/mach/irq.h +++ b/include/asm-arm/mach/irq.h @@ -92,6 +92,14 @@ struct irqdesc { extern struct irqdesc irq_desc[]; /* + * Helpful inline function for calling irq descriptor handlers. + */ +static inline void desc_handle_irq(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs) +{ + desc->handle(irq, desc, regs); +} + +/* * This is internal. Do not use it. */ extern void (*init_arch_irq)(void); |