diff options
author | jhb <jhb@FreeBSD.org> | 2001-02-22 13:47:01 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-02-22 13:47:01 +0000 |
commit | e5173c046ad9705b566cd017e8f18d78bd6d9b78 (patch) | |
tree | 0f2df63c8d3c66c2a567120bd8ebad3a96b849ab | |
parent | 13aad95ca7457ac11576f0a6988f9c99e352c179 (diff) | |
download | FreeBSD-src-e5173c046ad9705b566cd017e8f18d78bd6d9b78.zip FreeBSD-src-e5173c046ad9705b566cd017e8f18d78bd6d9b78.tar.gz |
Add a mtx_assert() in maybe_resched() just to be sure it's always called
with sched_lock held.
-rw-r--r-- | sys/kern/kern_synch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 2e244a0..85b3062 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -107,6 +107,7 @@ maybe_resched(p) struct proc *p; { + mtx_assert(&sched_lock, MA_OWNED); if (p->p_pri.pri_level < curproc->p_pri.pri_level) need_resched(); } |