- Use a more robust mechanism for determining whether or not a kse is on a

kseq.
This commit is contained in:
jeff 2003-06-17 19:49:18 +00:00
parent e910852082
commit 263ba3bebb

View File

@ -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);