summaryrefslogtreecommitdiffstats
path: root/sys/dev/safe
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-08-19 17:51:11 +0000
committersam <sam@FreeBSD.org>2003-08-19 17:51:11 +0000
commit59ff2ad5c76dd93b883ff0f8a7fdd96a30e6a19a (patch)
treeab83000d32d028d24443ab237035b625ff7b65dd /sys/dev/safe
parentfbca8f8acd8e3d733f33a81456516634845ffe76 (diff)
downloadFreeBSD-src-59ff2ad5c76dd93b883ff0f8a7fdd96a30e6a19a.zip
FreeBSD-src-59ff2ad5c76dd93b883ff0f8a7fdd96a30e6a19a.tar.gz
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.
Diffstat (limited to 'sys/dev/safe')
-rw-r--r--sys/dev/safe/safe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/safe/safe.c b/sys/dev/safe/safe.c
index 67f9233..ebd170e 100644
--- a/sys/dev/safe/safe.c
+++ b/sys/dev/safe/safe.c
@@ -441,8 +441,7 @@ safe_attach(device_t dev)
#endif
safe_rng_init(sc);
- /* 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, hz*safe_rnginterval, safe_rng, sc);
}
#endif /* SAFE_NO_RNG */
OpenPOWER on IntegriCloud