mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
- Add ke_runq == NULL to the conditions which will cause us to abort
adjusting timeshare loads in sched_class(). This is only important if the thread has never run, otherwise the state checks should work as expected.
This commit is contained in:
parent
2e0af0312e
commit
42a29039de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141292
@ -1534,8 +1534,8 @@ sched_class(struct ksegrp *kg, int class)
|
||||
oclass = PRI_BASE(kg->kg_pri_class);
|
||||
FOREACH_THREAD_IN_GROUP(kg, td) {
|
||||
ke = td->td_kse;
|
||||
if (ke->ke_state != KES_ONRUNQ &&
|
||||
ke->ke_state != KES_THREAD)
|
||||
if ((ke->ke_state != KES_ONRUNQ &&
|
||||
ke->ke_state != KES_THREAD) || ke->ke_runq == NULL)
|
||||
continue;
|
||||
kseq = KSEQ_CPU(ke->ke_cpu);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user