blob: 65430504ca2630c31d185429e6a2573c817b43ae [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);
John Stultzaa6f9c592013-03-22 11:31:29 -07009extern int second_overflow(unsigned long 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 *);
John Stultzaa6f9c592013-03-22 11:31:29 -070012extern void __hardpps(const struct timespec *, const struct timespec *);
13#endif /* _LINUX_NTP_INTERNAL_H */