GC some #if 0'd code.
This commit is contained in:
parent
3226cbf43b
commit
21832b1ec0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83787
@ -899,21 +899,15 @@ int
|
||||
yield(struct thread *td, struct yield_args *uap)
|
||||
{
|
||||
struct ksegrp *kg = td->td_ksegrp;
|
||||
td->td_retval[0] = 0;
|
||||
|
||||
mtx_lock_spin(&sched_lock);
|
||||
mtx_assert(&Giant, MA_NOTOWNED);
|
||||
#if 0
|
||||
DROP_GIANT_NOSWITCH();
|
||||
#endif
|
||||
mtx_lock_spin(&sched_lock);
|
||||
kg->kg_pri.pri_level = PRI_MAX_TIMESHARE;
|
||||
setrunqueue(td);
|
||||
kg->kg_proc->p_stats->p_ru.ru_nvcsw++;
|
||||
mi_switch();
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
#if 0
|
||||
PICKUP_GIANT();
|
||||
#endif
|
||||
td->td_retval[0] = 0;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user