From: Roman Zippel Date: Mon, 22 Sep 2008 21:42:44 +0000 (-0700) Subject: ntp: improve adjtimex frequency rounding X-Git-Tag: v2.6.28-rc1~82^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d40e944c25fb4642adb2a4c580a48218a9f3f824;p=pandora-kernel.git 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 Signed-off-by: Roman Zippel Cc: John Stultz Signed-off-by: Andrew Morton Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed