summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2000-11-19 06:02:32 +0000
committerjake <jake@FreeBSD.org>2000-11-19 06:02:32 +0000
commitf265931038bd5d4784d95756bac9482fea5c237a (patch)
tree011a8ccbfdc24eb4d3ad466439c9241fc3bd25f7 /sys/ia64
parent9c6b4db333692ded21cd0e118ef680cefb97d0d4 (diff)
downloadFreeBSD-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/ia64')
-rw-r--r--sys/ia64/ia64/machdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index 0fae551..0cc6f28 100644
--- a/sys/ia64/ia64/machdep.c
+++ b/sys/ia64/ia64/machdep.c
@@ -319,6 +319,8 @@ again:
TAILQ_INIT(&callwheel[i]);
}
+ mtx_init(&callout_lock, "callout", MTX_SPIN);
+
#if defined(USERCONFIG)
#if defined(USERCONFIG_BOOT)
if (1)
OpenPOWER on IntegriCloud