Axe a stale comment. Holding sched_lock across both setrunqueue() and

mi_switch() is sufficient.
This commit is contained in:
John Baldwin 2002-01-04 10:55:51 +00:00
parent db283fd6d5
commit 9d234f99f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88875

View File

@ -82,14 +82,6 @@ userret(td, frame, oticks)
mtx_lock_spin(&sched_lock);
kg->kg_pri.pri_level = kg->kg_pri.pri_user;
if (ke->ke_flags & KEF_NEEDRESCHED) {
/*
* Since we are curproc, a clock interrupt could
* change our priority without changing run queues
* (the running process is not kept on a run queue).
* If this happened after we setrunqueue ourselves but
* before we switch()'ed, we might not be on the queue
* indicated by our priority.
*/
DROP_GIANT_NOSWITCH();
setrunqueue(td);
p->p_stats->p_ru.ru_nivcsw++;