Remove spl's in uio_yield() that are covered by the sched_lock.

This commit is contained in:
John Baldwin 2001-07-03 15:58:37 +00:00
parent c3cc3cce4f
commit 29905510e0

View File

@ -377,10 +377,8 @@ static void
uio_yield()
{
struct proc *p;
int s;
p = curproc;
s = splhigh();
mtx_lock_spin(&sched_lock);
DROP_GIANT_NOSWITCH();
p->p_pri.pri_level = p->p_pri.pri_user;
@ -389,7 +387,6 @@ uio_yield()
mi_switch();
mtx_unlock_spin(&sched_lock);
PICKUP_GIANT();
splx(s);
}
int