mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 23:16:43 +07:00
7d489d15ce
Convert the core timekeeping logic to use timespec64s. This moves the 2038 issues out of the core logic and into all of the accessor functions. Future changes will need to push the timespec64s out to all timekeeping users, but that can be done interface by interface. Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
13 lines
497 B
C
13 lines
497 B
C
#ifndef _LINUX_NTP_INTERNAL_H
|
|
#define _LINUX_NTP_INTERNAL_H
|
|
|
|
extern void ntp_init(void);
|
|
extern void ntp_clear(void);
|
|
/* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */
|
|
extern u64 ntp_tick_length(void);
|
|
extern int second_overflow(unsigned long secs);
|
|
extern int ntp_validate_timex(struct timex *);
|
|
extern int __do_adjtimex(struct timex *, struct timespec64 *, s32 *);
|
|
extern void __hardpps(const struct timespec *, const struct timespec *);
|
|
#endif /* _LINUX_NTP_INTERNAL_H */
|