diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-09-28 22:21:28 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-10-01 09:57:59 -0700 |
commit | 7ec88e4be461590b5a3817460c34603f76d9b3ae (patch) | |
tree | 00bcd8cf85a86a36c91e3e1d4c039a9ae491f770 /kernel/time/timekeeping.c | |
parent | 9ffecb10283508260936b96022d4ee43a7798b4c (diff) | |
download | talos-obmc-linux-7ec88e4be461590b5a3817460c34603f76d9b3ae.tar.gz talos-obmc-linux-7ec88e4be461590b5a3817460c34603f76d9b3ae.zip |
ntp/pps: use timespec64 for hardpps()
There is only one user of the hardpps function in the kernel, so
it makes sense to atomically change it over to using 64-bit
timestamps for y2038 safety. In the hardpps implementation,
we also need to change the pps_normtime structure, which is
similar to struct timespec and also requires a 64-bit
seconds portion.
This introduces two temporary variables in pps_kc_event() to
do the conversion, they will be removed again in the next step,
which seemed preferable to having a larger patch changing it
all at the same time.
Acked-by: Richard Cochran <richardcochran@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/timekeeping.c')
-rw-r--r-- | kernel/time/timekeeping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 3739ac6aa473..177188b11a2e 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -2025,7 +2025,7 @@ int do_adjtimex(struct timex *txc) /** * hardpps() - Accessor function to NTP __hardpps function */ -void hardpps(const struct timespec *phase_ts, const struct timespec *raw_ts) +void hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts) { unsigned long flags; |