From fd90e2ed54a69bb07d14dcd4e805431ccb7d6cb6 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Fri, 22 May 2015 17:05:21 +0000 Subject: 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 --- sys/dev/mwl/if_mwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/mwl') 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, -- cgit v1.3