diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-06-29 05:24:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 13:26:24 -0400 |
commit | 3418d72404e35eb19e7995cbf3e7a76ba8fefbce (patch) | |
tree | 08e727f94d4ff31410730d5d42119b3520ad10ca /kernel/irq | |
parent | a4633adcdbc15ac51afcd0e1395de58cee27cf92 (diff) |
[PATCH] genirq: add IRQ_NOPROBE support
Introduce IRQ_NOPROBE: enables platforms to control chip-probing.
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')
-rw-r--r-- | kernel/irq/autoprobe.c | 4 | ||||
-rw-r--r-- | kernel/irq/manage.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/kernel/irq/autoprobe.c b/kernel/irq/autoprobe.c index 5c988bba401f..ed98c7d46cf2 100644 --- a/kernel/irq/autoprobe.c +++ b/kernel/irq/autoprobe.c | |||
@@ -40,7 +40,7 @@ unsigned long probe_irq_on(void) | |||
40 | desc = irq_desc + i; | 40 | desc = irq_desc + i; |
41 | 41 | ||
42 | spin_lock_irq(&desc->lock); | 42 | spin_lock_irq(&desc->lock); |
43 | if (!desc->action) | 43 | if (!desc->action && !(desc->status & IRQ_NOPROBE)) |
44 | desc->chip->startup(i); | 44 | desc->chip->startup(i); |
45 | spin_unlock_irq(&desc->lock); | 45 | spin_unlock_irq(&desc->lock); |
46 | } | 46 | } |
@@ -57,7 +57,7 @@ unsigned long probe_irq_on(void) | |||
57 | desc = irq_desc + i; | 57 | desc = irq_desc + i; |
58 | 58 | ||
59 | spin_lock_irq(&desc->lock); | 59 | spin_lock_irq(&desc->lock); |
60 | if (!desc->action) { | 60 | if (!desc->action && !(desc->status & IRQ_NOPROBE)) { |
61 | desc->status |= IRQ_AUTODETECT | IRQ_WAITING; | 61 | desc->status |= IRQ_AUTODETECT | IRQ_WAITING; |
62 | if (desc->chip->startup(i)) | 62 | if (desc->chip->startup(i)) |
63 | desc->status |= IRQ_PENDING; | 63 | desc->status |= IRQ_PENDING; |
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index cffde4843897..90a944a7fadc 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -118,6 +118,10 @@ void enable_irq(unsigned int irq) | |||
118 | WARN_ON(1); | 118 | WARN_ON(1); |
119 | break; | 119 | break; |
120 | case 1: { | 120 | case 1: { |
121 | unsigned int status = desc->status & ~IRQ_DISABLED; | ||
122 | |||
123 | /* Prevent probing on this irq: */ | ||
124 | desc->status = status | IRQ_NOPROBE; | ||
121 | check_irq_resend(desc, irq); | 125 | check_irq_resend(desc, irq); |
122 | /* fall-through */ | 126 | /* fall-through */ |
123 | } | 127 | } |