]> git.ipfire.org Git - thirdparty/chrony.git/commit
sys: drop frequency scaling in Linux driver
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 22 May 2014 14:28:20 +0000 (16:28 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 23 May 2014 14:15:28 +0000 (16:15 +0200)
commite147f2f11e1bc208db9053fa1df05d9b4857a545
tree27903a891066fed68ea29c8ae20e9a9e82c51005
parent14687d003d926e2afebba1d03336201a51045b0f
sys: drop frequency scaling in Linux driver

Since the kernel USER_HZ constant was introduced and the internal HZ
can't be reliably detected in user-space, the frequency scaling constant
used with older kernels is just a random guess.

Remove the scaling completely and let the closed loop compensate for the
error. To prevent thrashing between two states when the system's
frequency error is close to a multiple of USER_HZ, stick to the current
tick value if it's next to the new required tick. This is used only on
archs where USER_HZ is 100 as the frequency adjustment is limited to 500
ppm.

The linux_hz and linux_freq_scale directives are no longer supported,
but allowed by the config parser.
chrony.texi.in
conf.c
conf.h
sys_linux.c