From 29905510e064d6b1d0297ec088f57b5f903127e6 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 3 Jul 2001 15:58:37 +0000 Subject: [PATCH] Remove spl's in uio_yield() that are covered by the sched_lock. --- sys/kern/kern_subr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 95c34a5c4b97..48364ad97d11 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -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