aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/resend.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-03 06:27:44 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 06:58:10 -0500
commit87923470c712dff00b101ffb6b6fbc27bd7a6df5 (patch)
tree35dc1a0adec4d00bbc872ce096c481cf0d69314a /kernel/irq/resend.c
parent4699923861513671d3f6ade8efb4e56a9a7ecadf (diff)
genirq: Consolidate disable/enable
Create irq_disable/enable and use them to keep the flags consistent. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/resend.c')
-rw-r--r--kernel/irq/resend.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c
index dc49358b73fa..4bfe268dffe5 100644
--- a/kernel/irq/resend.c
+++ b/kernel/irq/resend.c
@@ -55,20 +55,20 @@ static DECLARE_TASKLET(resend_tasklet, resend_irqs, 0);
55 */ 55 */
56void check_irq_resend(struct irq_desc *desc, unsigned int irq) 56void check_irq_resend(struct irq_desc *desc, unsigned int irq)
57{ 57{
58 unsigned int status = desc->status;
59
60 /* 58 /*
61 * Make sure the interrupt is enabled, before resending it: 59 * Make sure the interrupt is enabled, before resending it:
62 */ 60 */
63 desc->irq_data.chip->irq_enable(&desc->irq_data); 61 irq_enable(desc);
64 62
65 /* 63 /*
66 * We do not resend level type interrupts. Level type 64 * We do not resend level type interrupts. Level type
67 * interrupts are resent by hardware when they are still 65 * interrupts are resent by hardware when they are still
68 * active. 66 * active.
69 */ 67 */
70 if ((status & (IRQ_LEVEL | IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) { 68 if (desc->status & IRQ_LEVEL)
71 desc->status = (status & ~IRQ_PENDING) | IRQ_REPLAY; 69 return;
70 if ((desc->status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) {
71 desc->status = (desc->status & ~IRQ_PENDING) | IRQ_REPLAY;
72 72
73 if (!desc->irq_data.chip->irq_retrigger || 73 if (!desc->irq_data.chip->irq_retrigger ||
74 !desc->irq_data.chip->irq_retrigger(&desc->irq_data)) { 74 !desc->irq_data.chip->irq_retrigger(&desc->irq_data)) {