mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-06 18:29:47 +00:00
- 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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121132
@ -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…
x
Reference in New Issue
Block a user