Add a mtx_assert() in maybe_resched() just to be sure it's always called

with sched_lock held.
This commit is contained in:
jhb 2001-02-22 13:47:01 +00:00
parent 13aad95ca7
commit e5173c046a

View File

@ -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();
}