blob: d8a7c11fa71a51e09063cf807d6f59959a6119ab [file] [log] [blame]
John Stultzaa6f9c592013-03-22 11:31:29 -07001#ifndef _LINUX_NTP_INTERNAL_H
2#define _LINUX_NTP_INTERNAL_H
3
4extern void ntp_init(void);
5extern void ntp_clear(void);
6/* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */
7extern u64 ntp_tick_length(void);
John Stultz833f32d2015-06-11 15:54:55 -07008extern ktime_t ntp_get_next_leap(void);
DengChaoc7963482015-12-13 12:26:42 +08009extern int second_overflow(time64_t secs);
John Stultze4085692013-03-22 12:08:52 -070010extern int ntp_validate_timex(struct timex *);
John Stultz7d489d12014-07-16 21:04:01 +000011extern int __do_adjtimex(struct timex *, struct timespec64 *, s32 *);
Arnd Bergmann7ec88e42015-09-28 22:21:28 +020012extern void __hardpps(const struct timespec64 *, const struct timespec64 *);
John Stultzaa6f9c592013-03-22 11:31:29 -070013#endif /* _LINUX_NTP_INTERNAL_H */