aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mwl
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-05-22 17:05:21 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-05-22 17:05:21 +0000
commitfd90e2ed54a69bb07d14dcd4e805431ccb7d6cb6 (patch)
tree9c598a67317c5e22e5e44d49e8bb797cb28e79b9 /sys/dev/mwl
parent316f4c880a15660086e5c9e7ee31f8b717e855f1 (diff)
downloadsrc-fd90e2ed54a69bb07d14dcd4e805431ccb7d6cb6.tar.gz
src-fd90e2ed54a69bb07d14dcd4e805431ccb7d6cb6.zip
CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten
years for head. However, it is continuously misused as the mpsafe argument for callout_init(9). Deprecate the flag and clean up callout_init() calls to make them more consistent. Differential Revision: https://reviews.freebsd.org/D2613 Reviewed by: jhb MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=283291
Diffstat (limited to 'sys/dev/mwl')
-rw-r--r--sys/dev/mwl/if_mwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c
index 89a39c073f66..5997dbc96194 100644
--- a/sys/dev/mwl/if_mwl.c
+++ b/sys/dev/mwl/if_mwl.c
@@ -363,7 +363,7 @@ mwl_attach(uint16_t devid, struct mwl_softc *sc)
if (error != 0) /* NB: mwl_setupdma prints msg */
goto bad1;
- callout_init(&sc->sc_timer, CALLOUT_MPSAFE);
+ callout_init(&sc->sc_timer, 1);
callout_init_mtx(&sc->sc_watchdog, &sc->sc_mtx, 0);
sc->sc_tq = taskqueue_create("mwl_taskq", M_NOWAIT,