blob: 909bd1f1bfb14dba87f6dc82fc85009108cabcdc [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
John Stultzaa6f9c592013-03-22 11:31:29 -07002#ifndef _LINUX_NTP_INTERNAL_H
3#define _LINUX_NTP_INTERNAL_H
4
5extern void ntp_init(void);
6extern void ntp_clear(void);
7/* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */
8extern u64 ntp_tick_length(void);
John Stultz833f32d2015-06-11 15:54:55 -07009extern ktime_t ntp_get_next_leap(void);
DengChaoc7963482015-12-13 12:26:42 +080010extern int second_overflow(time64_t secs);
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 */