Skip to content

Commit

Permalink
arm: Use ARCH_IRQ_INIT_FLAGS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner committed Oct 16, 2010
1 parent 05d0ca8 commit 032fa36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions arch/arm/include/asm/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ void set_irq_flags(unsigned int irq, unsigned int flags);
#define IRQF_PROBE (1 << 1)
#define IRQF_NOAUTOEN (1 << 2)

#define ARCH_IRQ_INIT_FLAGS (IRQ_NOREQUEST | IRQ_NOPROBE)

#endif
8 changes: 0 additions & 8 deletions arch/arm/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,6 @@ void set_irq_flags(unsigned int irq, unsigned int iflags)

void __init init_IRQ(void)
{
struct irq_desc *desc;
int 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();
}

Expand Down

0 comments on commit 032fa36

Please sign in to comment.