svn commit: r298855 - head/sys/arm/allwinner
Emmanuel Vadot
manu at FreeBSD.org
Sat Apr 30 18:07:14 UTC 2016
Author: manu
Date: Sat Apr 30 18:07:13 2016
New Revision: 298855
URL: https://svnweb.freebsd.org/changeset/base/298855
Log:
ACK the interrupt after disabling it, this avoid an interrupt storm.
Approved by: andrew (mentor)
Modified:
head/sys/arm/allwinner/aw_nmi.c
Modified: head/sys/arm/allwinner/aw_nmi.c
==============================================================================
--- head/sys/arm/allwinner/aw_nmi.c Sat Apr 30 17:27:33 2016 (r298854)
+++ head/sys/arm/allwinner/aw_nmi.c Sat Apr 30 18:07:13 2016 (r298855)
@@ -277,8 +277,11 @@ aw_nmi_teardown_intr(device_t dev, struc
static void
aw_nmi_pre_ithread(device_t dev, struct intr_irqsrc *isrc)
{
+ struct aw_nmi_softc *sc;
+ sc = device_get_softc(dev);
aw_nmi_disable_intr(dev, isrc);
+ SC_NMI_WRITE(sc, NMI_IRQ_PENDING_REG, NMI_IRQ_ACK);
}
static void
More information about the svn-src-head
mailing list