aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorRoman Zippel <[email protected]>2008-09-22 21:42:44 +0000
committerThomas Gleixner <[email protected]>2008-09-24 15:33:13 +0000
commitd40e944c25fb4642adb2a4c580a48218a9f3f824 (patch)
tree9be7107440704a84d17f9dde12991915931c5279 /fs/proc/array.c
parenttimekeeping: fix rounding problem during clock update (diff)
downloadkernel-d40e944c25fb4642adb2a4c580a48218a9f3f824.tar.gz
kernel-d40e944c25fb4642adb2a4c580a48218a9f3f824.zip
ntp: improve adjtimex frequency rounding
Change PPM_SCALE_INV_SHIFT so that it doesn't throw away any input bits (19 is the amount of the factor 2 in PPM_SCALE), the output frequency can then be calculated back to its input value, as the inverse divide produce a slightly larger value, which is then correctly rounded by the final shift. Reported-by: Martin Ziegler <[email protected]> Signed-off-by: Roman Zippel <[email protected]> Cc: John Stultz <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions