- 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);
|
||||
/* 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
|
||||
|
Loading…
Reference in New Issue
Block a user