mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
- 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
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue