- 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:
parent
c16ec48bfb
commit
b72f347bdb
@ -815,9 +815,7 @@ sched_switch(struct thread *td)
|
|||||||
runq_add(ke->ke_runq, ke);
|
runq_add(ke->ke_runq, ke);
|
||||||
/* setrunqueue(td); */
|
/* setrunqueue(td); */
|
||||||
}
|
}
|
||||||
return;
|
} else if (ke->ke_runq)
|
||||||
}
|
|
||||||
if (ke->ke_runq)
|
|
||||||
kseq_rem(KSEQ_CPU(ke->ke_cpu), ke);
|
kseq_rem(KSEQ_CPU(ke->ke_cpu), ke);
|
||||||
/*
|
/*
|
||||||
* We will not be on the run queue. So we must be
|
* We will not be on the run queue. So we must be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user