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/kern/kern_mutex.c | |
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/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 58a98d1..f8d3e9e 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -703,6 +703,7 @@ static char *spin_order_list[] = { #ifdef __i386__ "clk", #endif + "callout", /* * leaf locks */ |