Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Loop in the interrupt handler while there are int...



details:   https://anonhg.NetBSD.org/src/rev/49f0f55f80b0
branches:  trunk
changeset: 346201:49f0f55f80b0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jul 01 09:03:28 2016 +0000

description:
Loop in the interrupt handler while there are interrupts to process.

umass(4) reads now work much better.

diffstat:

 sys/dev/ic/sl811hs.c |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 55b3f616d6dd -r 49f0f55f80b0 sys/dev/ic/sl811hs.c
--- a/sys/dev/ic/sl811hs.c      Fri Jul 01 08:42:21 2016 +0000
+++ b/sys/dev/ic/sl811hs.c      Fri Jul 01 09:03:28 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sl811hs.c,v 1.92 2016/07/01 08:42:21 skrll Exp $       */
+/*     $NetBSD: sl811hs.c,v 1.93 2016/07/01 09:03:28 skrll Exp $       */
 
 /*
  * Not (c) 2007 Matthew Orgass
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.92 2016/07/01 08:42:21 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.93 2016/07/01 09:03:28 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_slhci.h"
@@ -1534,13 +1534,17 @@
 {
        SLHCIHIST_FUNC(); SLHCIHIST_CALLED();
        struct slhci_softc *sc = arg;
-       int ret;
+       int ret = 0;
+       int irq;
 
        start_cc_time(&t_hard_int, (unsigned int)arg);
        mutex_enter(&sc->sc_intr_lock);
 
-       ret = slhci_dointr(sc);
-       slhci_main(sc);
+       do {
+               irq = slhci_dointr(sc);
+               ret |= irq;
+               slhci_main(sc);
+       } while (irq);
        mutex_exit(&sc->sc_intr_lock);
 
        stop_cc_time(&t_hard_int);



Home | Main Index | Thread Index | Old Index