summaryrefslogtreecommitdiffstats
path: root/kernel/irq/chip.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-27 21:01:37 +0200
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 16:39:06 +0200
commit1318a481fc37c503a901b96ae06b692ca2b21af5 (patch)
tree2b1bb8f52af5938759af38efdfa8a868b02d5804 /kernel/irq/chip.c
parentd895f51ebb54cefe367bda135fcf2cd734d51d03 (diff)
downloadop-kernel-dev-1318a481fc37c503a901b96ae06b692ca2b21af5.zip
op-kernel-dev-1318a481fc37c503a901b96ae06b692ca2b21af5.tar.gz
genirq: Provide default irq init flags
Arch code sets it's own irq_desc.status flags right after boot and for dynamically allocated interrupts. That might involve iterating over a huge array. Allow ARCH_IRQ_INIT_FLAGS to set separate flags aside of IRQ_DISABLED which is the default. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r--kernel/irq/chip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 659be32..3405761 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -31,7 +31,7 @@ static void dynamic_irq_init_x(unsigned int irq, bool keep_chip_data)
/* Ensure we don't have left over values from a previous use of this irq */
raw_spin_lock_irqsave(&desc->lock, flags);
- desc->status = IRQ_DISABLED;
+ desc->status = IRQ_DEFAULT_INIT_FLAGS;
desc->irq_data.chip = &no_irq_chip;
desc->handle_irq = handle_bad_irq;
desc->depth = 1;
OpenPOWER on IntegriCloud