- Use a more robust mechanism for determining whether or not a kse is on a
kseq.
This commit is contained in:
parent
6ff8ac45ad
commit
d07ac847ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116500
@ -800,8 +800,7 @@ sched_nice(struct ksegrp *kg, int nice)
|
||||
*/
|
||||
if (kg->kg_pri_class == PRI_TIMESHARE)
|
||||
FOREACH_KSE_IN_GROUP(kg, ke) {
|
||||
if (ke->ke_state != KES_ONRUNQ &&
|
||||
ke->ke_state != KES_THREAD)
|
||||
if (ke->ke_runq == NULL)
|
||||
continue;
|
||||
kseq = KSEQ_CPU(ke->ke_cpu);
|
||||
kseq_nice_rem(kseq, kg->kg_nice);
|
||||
|
Loading…
Reference in New Issue
Block a user