diff options
| author | Bosko Milekic <bmilekic@FreeBSD.org> | 2001-02-09 06:11:45 +0000 |
|---|---|---|
| committer | Bosko Milekic <bmilekic@FreeBSD.org> | 2001-02-09 06:11:45 +0000 |
| commit | 9ed346bab02c967ac656a58bc024f9505d8e3d7a (patch) | |
| tree | d3c094e833fc39df4460403c9499fab2981579c4 /sys/kern/kern_subr.c | |
| parent | c27eb220c245e2b0f32d16a84d5edb3e42ccd2f8 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_subr.c')
| -rw-r--r-- | sys/kern/kern_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index c3d7849f636e..ef4121ba133a 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -377,13 +377,13 @@ uio_yield() p = curproc; s = splhigh(); - mtx_enter(&sched_lock, MTX_SPIN); + mtx_lock_spin(&sched_lock); DROP_GIANT_NOSWITCH(); p->p_priority = p->p_usrpri; setrunqueue(p); p->p_stats->p_ru.ru_nivcsw++; mi_switch(); - mtx_exit(&sched_lock, MTX_SPIN); + mtx_unlock_spin(&sched_lock); PICKUP_GIANT(); splx(s); } |
