- Fix a minor problem with my last commit, we don't want to return from

sched_switch if the thread is running, we want to fall through and pick
   a new thread because we have been preempted.
This commit is contained in:
Jeff Roberson 2003-10-16 10:04:54 +00:00
parent c16ec48bfb
commit b72f347bdb

View File

@ -815,9 +815,7 @@ sched_switch(struct thread *td)
runq_add(ke->ke_runq, ke);
/* setrunqueue(td); */
}
return;
}
if (ke->ke_runq)
} else if (ke->ke_runq)
kseq_rem(KSEQ_CPU(ke->ke_cpu), ke);
/*
* We will not be on the run queue. So we must be