diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-10 07:16:14 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:22 -0500 |
commit | d4d5e08960844a062da8387ee5f16ca7a33200d0 (patch) | |
tree | 1154fd87e25595ae9391740a1d9a3d60f69770de /kernel/irq/chip.c | |
parent | 2bff17ad2107c66fc8ca96501a7128dd7fa7a390 (diff) |
genirq: Add IRQCHIP_SET_TYPE_MASKED flag
irq_chips, which require to mask the chip before changing the trigger
type should set this flag. So the core takes care of it and the
requirement for looking into desc->status in the chip goes away.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Walleij <linus.walleij@stericsson.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r-- | kernel/irq/chip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 9e9220da4deb..4687457fe7f0 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -367,7 +367,7 @@ static inline void mask_ack_irq(struct irq_desc *desc) | |||
367 | irq_state_set_masked(desc); | 367 | irq_state_set_masked(desc); |
368 | } | 368 | } |
369 | 369 | ||
370 | static inline void mask_irq(struct irq_desc *desc) | 370 | void mask_irq(struct irq_desc *desc) |
371 | { | 371 | { |
372 | if (desc->irq_data.chip->irq_mask) { | 372 | if (desc->irq_data.chip->irq_mask) { |
373 | desc->irq_data.chip->irq_mask(&desc->irq_data); | 373 | desc->irq_data.chip->irq_mask(&desc->irq_data); |
@@ -375,7 +375,7 @@ static inline void mask_irq(struct irq_desc *desc) | |||
375 | } | 375 | } |
376 | } | 376 | } |
377 | 377 | ||
378 | static inline void unmask_irq(struct irq_desc *desc) | 378 | void unmask_irq(struct irq_desc *desc) |
379 | { | 379 | { |
380 | if (desc->irq_data.chip->irq_unmask) { | 380 | if (desc->irq_data.chip->irq_unmask) { |
381 | desc->irq_data.chip->irq_unmask(&desc->irq_data); | 381 | desc->irq_data.chip->irq_unmask(&desc->irq_data); |