diff options
author | cognet <cognet@FreeBSD.org> | 2006-06-01 22:45:56 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2006-06-01 22:45:56 +0000 |
commit | 9a61d7bd7216d9c38e1b6208133d87d1b18f834b (patch) | |
tree | 6328399d1258aeb417f38782ffbc5de1b75c07ac /sys | |
parent | 3a0e5e399e3ea9680522ea25ac693e408d86d455 (diff) | |
download | FreeBSD-src-9a61d7bd7216d9c38e1b6208133d87d1b18f834b.zip FreeBSD-src-9a61d7bd7216d9c38e1b6208133d87d1b18f834b.tar.gz |
sched_rem() already sets ke->ke_state to KES_THREAD, so there's no need
to redo it.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_switch.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 48e6e10..c7d8ed6 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) |