mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
[PATCH] ntp: prescale time_offset
This converts time_offset into a scaled per tick value. This avoids now completely the crude compensation in second_overflow(). Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Cc: john stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
dc6a43e46f
commit
3d3675cc3d
2 changed files with 17 additions and 49 deletions
|
@ -89,7 +89,7 @@
|
|||
* FINENSEC is 1 ns in SHIFT_UPDATE units of the time_phase variable.
|
||||
*/
|
||||
#define SHIFT_SCALE 22 /* phase scale (shift) */
|
||||
#define SHIFT_UPDATE (SHIFT_KG + MAXTC) /* time offset scale (shift) */
|
||||
#define SHIFT_UPDATE (SHIFT_HZ + 1) /* time offset scale (shift) */
|
||||
#define SHIFT_USEC 16 /* frequency offset scale (shift) */
|
||||
#define FINENSEC (1L << (SHIFT_SCALE - 10)) /* ~1 ns in phase units */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue