diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-06-29 09:49:00 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-06-29 09:49:00 +0000 |
commit | 859313b1e92c383db9b8df053139dd8698133434 (patch) | |
tree | 48ba982e634a7d4f71a9befc925e619225ec325f /sys | |
parent | 213fe633213862c30bfe50c6616f61eab15bf53e (diff) | |
download | FreeBSD-src-859313b1e92c383db9b8df053139dd8698133434.zip FreeBSD-src-859313b1e92c383db9b8df053139dd8698133434.tar.gz |
Fix system load count (noticed by dephij). Remove incorrect
comment.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sched_core.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/sched_core.c b/sys/kern/sched_core.c index c52e496..9ce90c8 100644 --- a/sys/kern/sched_core.c +++ b/sys/kern/sched_core.c @@ -566,7 +566,7 @@ kseq_load_rem(struct kseq *kseq, struct kse *ke) { kseq->ksq_load--; if ((ke->ke_proc->p_flag & P_NOLOAD) == 0) - sched_tdcnt++; + sched_tdcnt--; } /* @@ -875,11 +875,6 @@ sched_thread_priority(struct thread *td, u_char prio) ke->ke_runq = ke->ke_kseq->ksq_curr; krunq_add(ke->ke_runq, ke); } - /* - * Hold this kse on this cpu so that sched_prio() doesn't - * cause excessive migration. We only want migration to - * happen as the result of a wakeup. - */ adjustrunqueue(td, prio); } else td->td_priority = prio; |