aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-07-07 16:32:17 -0400
committerThomas Gleixner <tglx@linutronix.de>2011-07-28 05:23:21 -0400
commitf3637a5f2e2eb391ff5757bc83fb5de8f9726464 (patch)
tree4573995893bfe66e505b11bf4277cf062e1a7eea /kernel
parent1dd75f91ae713049eb6baaa640078f3a6549e522 (diff)
irq: Always set IRQF_ONESHOT if no primary handler is specified
If no primary handler is specified then a default one is assigned which always returns IRQ_WAKE_THREAD. This handler requires the IRQF_ONESHOT flag on LEVEL / EIO typed irqs because the source of interrupt is not disabled. Since it is required for those users and there is no difference for others it makes sense to add this flag unconditionally. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Link: http://lkml.kernel.org/r/1310070737-18514-1-git-send-email-bigeasy@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/manage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 0a7840aeb0fb..3f9cd4799da7 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -1322,6 +1322,7 @@ int request_threaded_irq(unsigned int irq, irq_handler_t handler,
1322 if (!thread_fn) 1322 if (!thread_fn)
1323 return -EINVAL; 1323 return -EINVAL;
1324 handler = irq_default_primary_handler; 1324 handler = irq_default_primary_handler;
1325 irqflags |= IRQF_ONESHOT;
1325 } 1326 }
1326 1327
1327 action = kzalloc(sizeof(struct irqaction), GFP_KERNEL); 1328 action = kzalloc(sizeof(struct irqaction), GFP_KERNEL);