summaryrefslogtreecommitdiff
path: root/sys/kern/kern_subr.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-07-03 15:58:37 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-07-03 15:58:37 +0000
commit29905510e064d6b1d0297ec088f57b5f903127e6 (patch)
treeef108b7432046d6faf0cab30130949ce20ad008d /sys/kern/kern_subr.c
parentc3cc3cce4f6aed57f6a9644ff6f90e0ce39a1e6d (diff)
Notes
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 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