[patch 12/47] arm: Use ARCH_IRQ_INIT_FLAGS

From: Thomas Gleixner
Date: Thu Sep 30 2010 - 19:16:10 EST


Define the ARCH_IRQ_INIT_FLAGS instead of fixing it up in a loop.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
arch/arm/include/asm/hw_irq.h | 2 ++
arch/arm/kernel/irq.c | 4 +---
2 files changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6-tip/arch/arm/include/asm/hw_irq.h
===================================================================
--- linux-2.6-tip.orig/arch/arm/include/asm/hw_irq.h
+++ linux-2.6-tip/arch/arm/include/asm/hw_irq.h
@@ -24,4 +24,6 @@ void set_irq_flags(unsigned int irq, uns
#define IRQF_PROBE (1 << 1)
#define IRQF_NOAUTOEN (1 << 2)

+#define ARCH_IRQ_INIT_FLAGS (IRQ_NOREQUEST | IRQ_NOPROBE)
+
#endif
Index: linux-2.6-tip/arch/arm/kernel/irq.c
===================================================================
--- linux-2.6-tip.orig/arch/arm/kernel/irq.c
+++ linux-2.6-tip/arch/arm/kernel/irq.c
@@ -151,10 +151,8 @@ void __init init_IRQ(void)
struct irq_desc *desc;
int irq;

- for (irq = 0; irq < nr_irqs; irq++) {
+ for (irq = 0; irq < nr_irqs; irq++)
desc = irq_to_desc_alloc_node(irq, 0);
- desc->status |= IRQ_NOREQUEST | IRQ_NOPROBE;
- }

init_arch_irq();
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/