aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2006-06-01 22:45:56 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2006-06-01 22:45:56 +0000
commit4bb0f51d1d90e18aa1819bfe6fcd54703b0185ae (patch)
tree6328399d1258aeb417f38782ffbc5de1b75c07ac /sys
parent392cb4c78c5dae0bab31011033c300bfcfa4a3de (diff)
downloadsrc-4bb0f51d1d90e18aa1819bfe6fcd54703b0185ae.tar.gz
src-4bb0f51d1d90e18aa1819bfe6fcd54703b0185ae.zip
sched_rem() already sets ke->ke_state to KES_THREAD, so there's no need
to redo it.
Notes
Notes: svn path=/head/; revision=159154
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_switch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index 48e6e10b6eca..c7d8ed694fa6 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -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)