0001
0002 #ifndef _LINUX_NTP_INTERNAL_H
0003 #define _LINUX_NTP_INTERNAL_H
0004
0005 extern void ntp_init(void);
0006 extern void ntp_clear(void);
0007
0008 extern u64 ntp_tick_length(void);
0009 extern ktime_t ntp_get_next_leap(void);
0010 extern int second_overflow(time64_t secs);
0011 extern int __do_adjtimex(struct __kernel_timex *txc,
0012 const struct timespec64 *ts,
0013 s32 *time_tai, struct audit_ntp_data *ad);
0014 extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
0015
0016 #if defined(CONFIG_GENERIC_CMOS_UPDATE) || defined(CONFIG_RTC_SYSTOHC)
0017 extern void ntp_notify_cmos_timer(void);
0018 #else
0019 static inline void ntp_notify_cmos_timer(void) { }
0020 #endif
0021
0022 #endif