aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/safe
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-08-19 17:51:11 +0000
committerSam Leffler <sam@FreeBSD.org>2003-08-19 17:51:11 +0000
commitc06eb4e29362135629bd45fbcb1c00dea6a78797 (patch)
treeab83000d32d028d24443ab237035b625ff7b65dd /sys/dev/safe
parent9d6f37e49026d742ddb7e6f01303e38924e14bc9 (diff)
downloadsrc-c06eb4e29362135629bd45fbcb1c00dea6a78797.tar.gz
src-c06eb4e29362135629bd45fbcb1c00dea6a78797.zip
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.
Notes
Notes: svn path=/head/; revision=119137
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 67f9233e60c4..ebd170e3fc6e 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 */