irq handling code consolidation, second try (v850 part)
RFC 1/1 irq handling code consolidation, second try (v850 part)
Hi all,
attached patch is a second try of IRQ handling code consolidation. This is a v850 specific patch (untested).
Best regards.
Signature · 2 lines
Andrey Panin | Embedded systems software developer [email protected] | PGP key: wwwkeys.pgp.net
arch/v850/Kconfig +3 -0
@@ -16,6 +16,9 @@ config UID16 bool default n +config GENERIC_IRQ + bool + default y config RWSEM_GENERIC_SPINLOCK bool default y
arch/v850/kernel/irq.c +1 -538
557 lines not on this page · raw message
include/asm-v850/hw_irq.h +17 -0
@@ -5,4 +5,21 @@ { } +#define arch_ack_bad_irq (irq) do { } while (0) + +/* Return a pointer to the irq descriptor for IRQ. */ +#define irq_desc (irq) (irq_desc + (irq)) + +/* Check irq number */ +#define arch_check_irq (irq) ((irq) >= NR_IRQS) + +/* Arch specific hook for setup_irq() */ +#define arch_setup_irq (irq, desc, irqaction) do { } while (0) + +/* Used in setup_irq() */ +#define ARCH_NONSHARED_IRQ_MASK \ + ~(IRQ_DISABLED | IRQ_AUTODETECT | IRQ_WAITING | IRQ_INPROGRESS) + +#define HAVE_ARCH_IRQ_PROC +#endif /* __V850_HW_IRQ_H__ */