diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-11-18 00:21:00 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-11-18 00:21:00 +0000 |
| commit | b6b55e27a4a946b608a08244b7edc170b9802dbf (patch) | |
| tree | 083c41b97b516d74fc52cdb7fd3e58c79e392deb /sys/kern/kern_timeout.c | |
| parent | e5c5b829508510469b99267208bfa3cd5dae47e6 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_timeout.c')
| -rw-r--r-- | sys/kern/kern_timeout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 831fbacaeaae..58619a715166 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -107,8 +107,10 @@ softclock(void *dummy) if (steps >= MAX_SOFTCLOCK_STEPS) { nextsoftcheck = c; /* Give interrupts a chance. */ + mtx_exit(&sched_lock, MTX_SPIN); splx(s); s = splhigh(); + mtx_enter(&sched_lock, MTX_SPIN); c = nextsoftcheck; steps = 0; } |
