]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ntp/pps: use timespec64 for hardpps()
authorArnd Bergmann <arnd@arndb.de>
Mon, 28 Sep 2015 20:21:28 +0000 (22:21 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Thu, 1 Oct 2015 16:57:59 +0000 (09:57 -0700)
commit7ec88e4be461590b5a3817460c34603f76d9b3ae
tree00bcd8cf85a86a36c91e3e1d4c039a9ae491f770
parent9ffecb10283508260936b96022d4ee43a7798b4c
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>
drivers/pps/kc.c
include/linux/timex.h
kernel/time/ntp.c
kernel/time/ntp_internal.h
kernel/time/timekeeping.c