To prevent interrupt storms, the fasteoi handler must mask
the interrupt line in oneshot mode. Backported from c69e3758ff56.
---
 kernel/irq/chip.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 9671529..2d25c62 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -575,6 +575,9 @@ handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc)
                goto out;
        }
 
+       if (desc->status & IRQ_ONESHOT)
+               mask_irq(desc);
+
        desc->status |= IRQ_INPROGRESS;
        desc->status &= ~IRQ_PENDING;
        raw_spin_unlock(&desc->lock);
-- 
1.7.6.4


_______________________________________________
Adeos-main mailing list
Adeos-main@gna.org
https://mail.gna.org/listinfo/adeos-main

Reply via email to