mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] ntp: add time_adjust to tick length
This folds update_ntp_one_tick() into second_overflow() and adds time_adjust to the tick length, this makes time_next_adjust unnecessary. This slightly changes the adjtime() behaviour, instead of applying it to the next tick, it's applied to the next second. 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
3d3675cc3d
commit
8f807f8d21
3 changed files with 18 additions and 56 deletions
|
@ -217,7 +217,6 @@ extern long time_freq; /* frequency offset (scaled ppm) */
|
|||
extern long time_reftime; /* time at last adjustment (s) */
|
||||
|
||||
extern long time_adjust; /* The amount of adjtime left */
|
||||
extern long time_next_adjust; /* Value for time_adjust at next tick */
|
||||
|
||||
extern void ntp_clear(void);
|
||||
extern void ntp_update_frequency(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue