diff options
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r-- | kernel/irq/chip.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index cbd97ce0b000..a3bb14fbe5c6 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -213,6 +213,19 @@ void irq_enable(struct irq_desc *desc) | |||
213 | irq_state_clr_masked(desc); | 213 | irq_state_clr_masked(desc); |
214 | } | 214 | } |
215 | 215 | ||
216 | /** | ||
217 | * irq_disable - Mark interupt disabled | ||
218 | * @desc: irq descriptor which should be disabled | ||
219 | * | ||
220 | * If the chip does not implement the irq_disable callback, we | ||
221 | * use a lazy disable approach. That means we mark the interrupt | ||
222 | * disabled, but leave the hardware unmasked. That's an | ||
223 | * optimization because we avoid the hardware access for the | ||
224 | * common case where no interrupt happens after we marked it | ||
225 | * disabled. If an interrupt happens, then the interrupt flow | ||
226 | * handler masks the line at the hardware level and marks it | ||
227 | * pending. | ||
228 | */ | ||
216 | void irq_disable(struct irq_desc *desc) | 229 | void irq_disable(struct irq_desc *desc) |
217 | { | 230 | { |
218 | irq_state_set_disabled(desc); | 231 | irq_state_set_disabled(desc); |