Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/hyperv Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/df189799e4f4
branches:  netbsd-9
changeset: 461128:df189799e4f4
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Nov 16 16:51:45 2019 +0000

description:
Pull up following revision(s) (requested by nonaka in ticket #428):

        sys/dev/hyperv/if_hvn.c: revision 1.6
        sys/dev/hyperv/hvkbd.c: revision 1.4

hvn(4), hvkbd(4): No need to call vmbus_channel_setdeferred().

These devices do not perform batch reading.

diffstat:

 sys/dev/hyperv/hvkbd.c  |  10 ++--------
 sys/dev/hyperv/if_hvn.c |  10 ++--------
 2 files changed, 4 insertions(+), 16 deletions(-)

diffs (62 lines):

diff -r 6c1a9f0ed4c1 -r df189799e4f4 sys/dev/hyperv/hvkbd.c
--- a/sys/dev/hyperv/hvkbd.c    Sat Nov 16 16:48:25 2019 +0000
+++ b/sys/dev/hyperv/hvkbd.c    Sat Nov 16 16:51:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hvkbd.c,v 1.2 2019/07/21 16:08:13 rin Exp $    */
+/*     $NetBSD: hvkbd.c,v 1.2.2.1 2019/11/16 16:51:45 martin Exp $     */
 
 /*-
  * Copyright (c) 2017 Microsoft Corp.
@@ -36,7 +36,7 @@
 #endif /* _KERNEL_OPT */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hvkbd.c,v 1.2 2019/07/21 16:08:13 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hvkbd.c,v 1.2.2.1 2019/11/16 16:51:45 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -216,12 +216,6 @@
                return;
        }
 
-       if (vmbus_channel_setdeferred(sc->sc_chan, device_xname(self))) {
-               aprint_error_dev(self,
-                   "failed to create the interrupt thread\n");
-               goto free_buf;
-       }
-
        sc->sc_chan->ch_flags &= ~CHF_BATCHED;
        if (vmbus_channel_open(sc->sc_chan,
            HVKBD_TX_RING_SIZE + HVKBD_RX_RING_SIZE, NULL, 0, hvkbd_intr, sc)) {
diff -r 6c1a9f0ed4c1 -r df189799e4f4 sys/dev/hyperv/if_hvn.c
--- a/sys/dev/hyperv/if_hvn.c   Sat Nov 16 16:48:25 2019 +0000
+++ b/sys/dev/hyperv/if_hvn.c   Sat Nov 16 16:51:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_hvn.c,v 1.4 2019/07/09 08:46:58 msaitoh Exp $       */
+/*     $NetBSD: if_hvn.c,v 1.4.2.1 2019/11/16 16:51:45 martin Exp $    */
 /*     $OpenBSD: if_hvn.c,v 1.39 2018/03/11 14:31:34 mikeb Exp $       */
 
 /*-
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.4 2019/07/09 08:46:58 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.4.2.1 2019/11/16 16:51:45 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -928,12 +928,6 @@
 
        sc->sc_chan->ch_flags &= ~CHF_BATCHED;
 
-       if (vmbus_channel_setdeferred(sc->sc_chan, device_xname(sc->sc_dev))) {
-               aprint_error_dev(sc->sc_dev,
-                   "failed to create the interrupt thread\n");
-               return -1;
-       }
-
        /* Associate our interrupt handler with the channel */
        if (vmbus_channel_open(sc->sc_chan, ringsize, NULL, 0,
            hvn_nvs_intr, sc)) {



Home | Main Index | Thread Index | Old Index