diff options
author | jake <jake@FreeBSD.org> | 2000-11-19 06:02:32 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-11-19 06:02:32 +0000 |
commit | f265931038bd5d4784d95756bac9482fea5c237a (patch) | |
tree | 011a8ccbfdc24eb4d3ad466439c9241fc3bd25f7 /sys/alpha | |
parent | 9c6b4db333692ded21cd0e118ef680cefb97d0d4 (diff) | |
download | FreeBSD-src-f265931038bd5d4784d95756bac9482fea5c237a.zip FreeBSD-src-f265931038bd5d4784d95756bac9482fea5c237a.tar.gz |
- Protect the callout wheel with a separate spin mutex, callout_lock.
- Use the mutex in hardclock to ensure no races between it and
softclock.
- Make softclock be INTR_MPSAFE and provide a flag,
CALLOUT_MPSAFE, which specifies that a callout handler does not
need giant. There is still no way to set this flag when
regstering a callout.
Reviewed by: -smp@, jlemon
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/machdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 043b903..39f5b34 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -387,6 +387,8 @@ again: TAILQ_INIT(&callwheel[i]); } + mtx_init(&callout_lock, "callout", MTX_SPIN); + #if defined(USERCONFIG) #if defined(USERCONFIG_BOOT) if (1) |