Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/dev/usb We don't need the kernel lock for our call...



details:   https://anonhg.NetBSD.org/src-all/rev/bd8ccc694271
branches:  trunk
changeset: 371023:bd8ccc694271
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Sat Jan 09 15:06:15 2021 +0100

description:
We don't need the kernel lock for our callouts.

diffstat:

 sys/dev/usb/if_urtwn.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r ddf5a8f946b3 -r bd8ccc694271 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sat Jan 09 14:42:34 2021 +0100
+++ b/sys/dev/usb/if_urtwn.c    Sat Jan 09 15:06:15 2021 +0100
@@ -437,9 +437,9 @@
        usb_init_task(&sc->sc_task, urtwn_task, sc, 0);
 
        /* NNN make these callouts use a vap ... in vap create??? */
-       callout_init(&sc->sc_calib_to, 0);
+       callout_init(&sc->sc_calib_to, CALLOUT_MPSAFE);
        callout_setfunc(&sc->sc_calib_to, urtwn_calib_to, sc);
-       callout_init(&sc->sc_watchdog_to, 0);
+       callout_init(&sc->sc_watchdog_to, CALLOUT_MPSAFE);
        callout_setfunc(&sc->sc_watchdog_to, urtwn_watchdog, sc);
 
        error = usbd_set_config_no(sc->sc_udev, 1, 0);



Home | Main Index | Thread Index | Old Index