Replace callout_init(..., 1) with callout_init(..., CALLOUT_MPSAFE) for

better grep-compliance and to standardize with the rest of the kernel.

Reviewed by:	       jhb
MFC after:	       1 week
This commit is contained in:
Kris Kennaway 2008-04-16 16:47:14 +00:00
parent 96e5e69a4a
commit c637bc9203
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178250
5 changed files with 5 additions and 5 deletions

View File

@ -809,7 +809,7 @@ gpib_ib_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
ib = malloc(sizeof *ib, M_IBFOO, M_WAITOK | M_ZERO);
LIST_INIT(&ib->handles);
callout_init(&ib->callout, 1);
callout_init(&ib->callout, CALLOUT_MPSAFE);
ib->unrhdr = new_unrhdr(0, INT_MAX, NULL);
dev->si_drv2 = ib;
ib->u = u;

View File

@ -518,7 +518,7 @@ mfi_attach(struct mfi_softc *sc)
bus_generic_attach(sc->mfi_dev);
/* Start the timeout watchdog */
callout_init(&sc->mfi_watchdog_callout, 1);
callout_init(&sc->mfi_watchdog_callout, CALLOUT_MPSAFE);
callout_reset(&sc->mfi_watchdog_callout, MFI_CMD_TIMEOUT * hz,
mfi_timeout, sc);

View File

@ -177,7 +177,7 @@ mpu401_init(kobj_class_t cls, void *cookie, driver_intr_t softintr,
kobj_init((kobj_t)m, cls);
callout_init(&m->timer, 1);
callout_init(&m->timer, CALLOUT_MPSAFE);
m->si = softintr;
m->cookie = cookie;

View File

@ -1204,7 +1204,7 @@ aue_init_body(struct aue_softc *sc)
ifp->if_drv_flags |= IFF_DRV_RUNNING;
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
callout_init(&sc->aue_tick_callout, 1);
callout_init(&sc->aue_tick_callout, CALLOUT_MPSAFE);
(void) callout_reset(&sc->aue_tick_callout, hz, aue_tick, sc);
return;
}

View File

@ -184,7 +184,7 @@ ng_netflow_constructor(node_p node)
priv->info.nfinfo_act_t = ACTIVE_TIMEOUT;
/* Initialize callout handle */
callout_init(&priv->exp_callout, 1);
callout_init(&priv->exp_callout, CALLOUT_MPSAFE);
/* Allocate memory and set up flow cache */
if ((error = ng_netflow_cache_init(priv)))