- A test in sched_switch() is no longer necessary and it is incorrect

when td0 is preempted before it voluntarily switches.

Discovered by:	Arjan Van Leeuwen <avleeuwen@gmail.com>
This commit is contained in:
jeff 2005-02-23 00:50:26 +00:00
parent 2ac2ce7ed3
commit bad5abc75d

View File

@ -1357,8 +1357,6 @@ sched_switch(struct thread *td, struct thread *newtd, int flags)
} else if ((ke->ke_flags & KEF_ASSIGNED) == 0) {
/* We are ending our run so make our slot available again */
SLOT_RELEASE(td->td_ksegrp);
if (ke->ke_runq == NULL)
panic("Thread not on runq.");
kseq_load_rem(ksq, ke);
if (TD_IS_RUNNING(td)) {
/*