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/582be6aed7ab
branches:  trunk
changeset: 1025448:582be6aed7ab
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 a926e09acfa7 -r 582be6aed7ab 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
@@ -436,9 +436,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