diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-06-29 11:24:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 19:26:24 +0200 |
commit | 94d39e1f6e8132ea982a1d61acbe0423d3d14365 (patch) | |
tree | 68ba3666c1d2c0805089e8ffdb47da961a760450 /kernel/irq/manage.c | |
parent | [PATCH] genirq: add IRQ_NOREQUEST support (diff) | |
download | linux-94d39e1f6e8132ea982a1d61acbe0423d3d14365.tar.xz linux-94d39e1f6e8132ea982a1d61acbe0423d3d14365.zip |
[PATCH] genirq: add IRQ_NOAUTOEN support
Enable platforms to disable the automatic enabling of freshly set up irqs.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index cae900a849c4..9ea18879fb62 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -216,13 +216,17 @@ int setup_irq(unsigned int irq, struct irqaction *new) desc->status |= IRQ_PER_CPU; #endif if (!shared) { - desc->depth = 0; - desc->status &= ~(IRQ_DISABLED | IRQ_AUTODETECT | - IRQ_WAITING | IRQ_INPROGRESS); - if (desc->chip->startup) - desc->chip->startup(irq); - else - desc->chip->enable(irq); + desc->status &= ~(IRQ_AUTODETECT | IRQ_WAITING | + IRQ_INPROGRESS); + + if (!(desc->status & IRQ_NOAUTOEN)) { + desc->depth = 0; + desc->status &= ~IRQ_DISABLED; + if (desc->chip->startup) + desc->chip->startup(irq); + else + desc->chip->enable(irq); + } } spin_unlock_irqrestore(&desc->lock, flags); |