irq handling consolidation (ppc part)
PATCH 1/1 irq handling consolidation (ppc part)
Hi all,
powerpc part of irq handling code consolidation. Compiles, but untested.
Please take a look.
Best regards.
Signature · 2 lines
Andrey Panin | Embedded systems software developer [email protected] | PGP key: wwwkeys.pgp.net
arch/ppc/Kconfig +4 -0
@@ -6,6 +6,10 @@ bool default y +config GENERIC_IRQ + bool + default y + config UID16 bool
arch/ppc/kernel/irq.c +2 -480
543 lines not on this page · raw message
include/asm-ppc/hw_irq.h +26 -0
@@ -71,6 +71,32 @@struct hw_interrupt_type ;static inline void hw_resend_irq (struct hw_interrupt_type *h,unsigned int i) {} +#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 irq_valid (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) + +#define HAVE_ARCH_IRQ_PROBE + +#define ARCH_AFFINITY_WIDTH 8 + +#ifdef CONFIG_IRQ_ALL_CPUS +#define ARCH_DEFAULT_CPU_AFFINITY +#define ARCH_DEFAULT_IRQ_AFFINITY ~0UL +#else +#define ARCH_DEFAULT_IRQ_AFFINITY 0x00000001 +#endif + +#define arch_can_create_irq_proc () (1)#endif /* _PPC_HW_IRQ_H */ #endif /* __KERNEL__ */