summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r--sys/kern/kern_subr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index 95c34a5..48364ad 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
OpenPOWER on IntegriCloud