]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r232917:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 12 Apr 2012 06:24:47 +0000 (06:24 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 12 Apr 2012 06:24:47 +0000 (06:24 +0000)
commite29b7e45131bd91896cc307dafc7d213341fcadd
treeee0da917477452dfb2476f949f0e44d47391c1a1
parentb9f9ea388d17669bd3da0ab324be2d03330e724d
MFC r232917:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@234166 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/sched_ule.c