diff options
author | mav <mav@FreeBSD.org> | 2012-03-13 08:18:54 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-03-13 08:18:54 +0000 |
commit | ffaa080e67a7f9d93841c0fdff2afac0b9b099b4 (patch) | |
tree | 0960a1ec41f32f1fa428ecce92cfa898b5ce7f5f /sys/kern/kern_clocksource.c | |
parent | 96d217f5d839cc75f7d19ab0f7b102d365bbe9f7 (diff) | |
download | FreeBSD-src-ffaa080e67a7f9d93841c0fdff2afac0b9b099b4.zip FreeBSD-src-ffaa080e67a7f9d93841c0fdff2afac0b9b099b4.tar.gz |
Rewrite thread CPU usage percentage math to not depend on periodic calls
with HZ rate through the sched_tick() calls from hardclock().
Potentially it can be used to improve precision, but now it is just minus
one more reason to call hardclock() for every HZ tick on every active CPU.
SCHED_4BSD never used sched_tick(), but keep it in place for now, as at
least SCHED_FBFS existing in patches out of the tree depends on it.
MFC after: 1 month
Diffstat (limited to 'sys/kern/kern_clocksource.c')
0 files changed, 0 insertions, 0 deletions