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

with sched_lock held.
This commit is contained in:
John Baldwin 2001-02-22 13:47:01 +00:00
parent 3a18729505
commit c978f49e20
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72886

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