xref: /openbmc/linux/kernel/time/ntp_internal.h (revision 985e6950)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2aa6f9c59SJohn Stultz #ifndef _LINUX_NTP_INTERNAL_H
3aa6f9c59SJohn Stultz #define _LINUX_NTP_INTERNAL_H
4aa6f9c59SJohn Stultz 
5aa6f9c59SJohn Stultz extern void ntp_init(void);
6aa6f9c59SJohn Stultz extern void ntp_clear(void);
7aa6f9c59SJohn Stultz /* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */
8aa6f9c59SJohn Stultz extern u64 ntp_tick_length(void);
9833f32d7SJohn Stultz extern ktime_t ntp_get_next_leap(void);
10c7963487SDengChao extern int second_overflow(time64_t secs);
11985e6950SOndrej Mosnacek extern int __do_adjtimex(struct timex *txc, const struct timespec64 *ts, s32 *time_tai);
12985e6950SOndrej Mosnacek extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
13aa6f9c59SJohn Stultz #endif /* _LINUX_NTP_INTERNAL_H */
14