diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-11-16 02:16:44 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-11-16 02:16:44 +0000 |
| commit | 20cdcc5b73ca7ca1c78ccaba30cf8dd1b2dd7ec0 (patch) | |
| tree | 3201c4205341604282c7e12d96fc999cf8686539 /sys/kern/kern_subr.c | |
| parent | 088638dae45dd9c9d8a66b8b999c8b43636357c9 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_subr.c')
| -rw-r--r-- | sys/kern/kern_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 7c5c94afe65b..429f34b7f8f5 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -377,11 +377,13 @@ uio_yield() p = curproc; s = splhigh(); + DROP_GIANT_NOSWITCH(); mtx_enter(&sched_lock, MTX_SPIN); p->p_priority = p->p_usrpri; setrunqueue(p); p->p_stats->p_ru.ru_nivcsw++; mi_switch(); mtx_exit(&sched_lock, MTX_SPIN); + PICKUP_GIANT(); splx(s); } |
