diff options
author | jeff <jeff@FreeBSD.org> | 2003-06-17 19:49:18 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-06-17 19:49:18 +0000 |
commit | 263ba3bebb2e04352025d598d6bfb74c1482a752 (patch) | |
tree | 108f215ffc6c2014b4e9e539e9ef1ab9fd935443 /sys/kern/sched_ule.c | |
parent | e9108520821a9b11ed99ff1fe8481eae1e56eff9 (diff) | |
download | FreeBSD-src-263ba3bebb2e04352025d598d6bfb74c1482a752.zip FreeBSD-src-263ba3bebb2e04352025d598d6bfb74c1482a752.tar.gz |
- Use a more robust mechanism for determining whether or not a kse is on a
kseq.
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r-- | sys/kern/sched_ule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 5cbc991..3932c6c 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -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); |