Skip to content

Commit 032fa36

Browse files
committed
arm: Use ARCH_IRQ_INIT_FLAGS
The core code now initializes the requested number of interrupts and sets the flags in irq_desc.status which are requested by the architecture via ARCH_IRQ_INIT_FLAGS. Add ARCH_IRQ_INIT_FLAGS and remove the loop which sets those flags after the irq descriptors are allocated. [ This patch should have been in the original irq rework and got dropped accidentaly ] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Russell King <linux@arm.linux.org.uk> Cc: Linus Walleij <linus.walleij@stericsson.com> Cc: Anand Gadiyar <gadiyar@ti.com>
1 parent 05d0ca8 commit 032fa36

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎arch/arm/include/asm/hw_irq.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ void set_irq_flags(unsigned int irq, unsigned int flags);
2424
#define IRQF_PROBE (1 << 1)
2525
#define IRQF_NOAUTOEN (1 << 2)
2626

27+
#define ARCH_IRQ_INIT_FLAGS (IRQ_NOREQUEST | IRQ_NOPROBE)
28+
2729
#endif

‎arch/arm/kernel/irq.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,6 @@ void set_irq_flags(unsigned int irq, unsigned int iflags)
154154

155155
void __init init_IRQ(void)
156156
{
157-
struct irq_desc *desc;
158-
int irq;
159-
160-
for (irq = 0; irq < nr_irqs; irq++) {
161-
desc = irq_to_desc_alloc_node(irq, 0);
162-
desc->status |= IRQ_NOREQUEST | IRQ_NOPROBE;
163-
}
164-
165157
init_arch_irq();
166158
}
167159

0 commit comments

Comments
 (0)