summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-06-21 02:31:49 +0000
committerjeff <jeff@FreeBSD.org>2003-06-21 02:31:49 +0000
commit350708fbcc9d7ec80b5473ab5621a3ab31ea9f25 (patch)
tree65df0af4b33255f9407e29c503e31758445d4169 /sys/kern
parent522f0d5e1553fbdc9993b2e9dd5011ff82d06b16 (diff)
downloadFreeBSD-src-350708fbcc9d7ec80b5473ab5621a3ab31ea9f25.zip
FreeBSD-src-350708fbcc9d7ec80b5473ab5621a3ab31ea9f25.tar.gz
- lticks was erroneously being updated in sched_pctcpu(). This was causing
us to skip the pctcpu_update() call which lead to inaccurate cpu usage statistics for processes that didn't run often.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 9e01ef8..615588b 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1250,8 +1250,6 @@ sched_pctcpu(struct kse *ke)
if (ke->ke_ticks) {
int rtick;
- /* Update to account for time potentially spent sleeping */
- ke->ke_ltick = ticks;
/*
* Don't update more frequently than twice a second. Allowing
* this causes the cpu usage to decay away too quickly due to
OpenPOWER on IntegriCloud