From 59ff2ad5c76dd93b883ff0f8a7fdd96a30e6a19a Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 19 Aug 2003 17:51:11 +0000 Subject: Change instances of callout_init that specify MPSAFE behaviour to use CALLOUT_MPSAFE instead of "1" for the second parameter. This does not change the behaviour; it just makes the intent more clear. --- sys/dev/hifn/hifn7751.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/dev/hifn/hifn7751.c') diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c index 4486845..4f787c0 100644 --- a/sys/dev/hifn/hifn7751.c +++ b/sys/dev/hifn/hifn7751.c @@ -487,8 +487,7 @@ hifn_attach(device_t dev) if (sc->sc_flags & (HIFN_HAS_PUBLIC | HIFN_HAS_RNG)) hifn_init_pubrng(sc); - /* NB: 1 means the callout runs w/o Giant locked */ - callout_init(&sc->sc_tickto, 1); + callout_init(&sc->sc_tickto, CALLOUT_MPSAFE); callout_reset(&sc->sc_tickto, hz, hifn_tick, sc); return (0); @@ -687,8 +686,7 @@ hifn_init_pubrng(struct hifn_softc *sc) sc->sc_rnghz = hz / 100; else sc->sc_rnghz = 1; - /* NB: 1 means the callout runs w/o Giant locked */ - callout_init(&sc->sc_rngto, 1); + callout_init(&sc->sc_rngto, CALLOUT_MPSAFE); callout_reset(&sc->sc_rngto, sc->sc_rnghz, hifn_rng, sc); } -- cgit v1.1