sched_rem() already sets ke->ke_state to KES_THREAD, so there's no need

to redo it.
This commit is contained in:
Olivier Houchard 2006-06-01 22:45:56 +00:00
parent 392cb4c78c
commit 4bb0f51d1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159154

View file

@ -267,7 +267,6 @@ remrunqueue(struct thread *td)
if ((td->td_proc->p_flag & P_HADTHREADS) == 0) {
/* remve from sys run queue and free up a slot */
sched_rem(td);
ke->ke_state = KES_THREAD;
return;
}
td3 = TAILQ_PREV(td, threadqueue, td_runq);
@ -280,7 +279,6 @@ remrunqueue(struct thread *td)
* see if we need to move the KSE in the run queues.
*/
sched_rem(td);
ke->ke_state = KES_THREAD;
td2 = kg->kg_last_assigned;
KASSERT((td2 != NULL), ("last assigned has wrong value"));
if (td2 == td)