diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-09-28 22:21:30 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-10-01 09:59:07 -0700 |
commit | 5fd96c421ff2c76ec441aa4139c3b87dfea93e3a (patch) | |
tree | 4f527de60428b2eaebe710505555c1557e851699 /kernel/time/ntp.c | |
parent | 071eee45b1650d53d21c636d344bdcebd4577ed2 (diff) | |
download | linux-5fd96c421ff2c76ec441aa4139c3b87dfea93e3a.tar.gz linux-5fd96c421ff2c76ec441aa4139c3b87dfea93e3a.tar.bz2 linux-5fd96c421ff2c76ec441aa4139c3b87dfea93e3a.zip |
ntp: use timespec64 in sync_cmos_clock
The sync_cmos_clock has one use of struct timespec, which we want to
eventually replace with timespec64 or similar in the kernel. There
is no way this one can overflow, but the conversion to timespec64
is trivial and has no other dependencies.
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/ntp.c')
-rw-r--r-- | kernel/time/ntp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index bd4fa6271262..149cc8086aea 100644 --- a/kernel/time/ntp.c +++ b/kernel/time/ntp.c @@ -509,7 +509,7 @@ static DECLARE_DELAYED_WORK(sync_cmos_work, sync_cmos_clock); static void sync_cmos_clock(struct work_struct *work) { struct timespec64 now; - struct timespec next; + struct timespec64 next; int fail = 1; /* @@ -559,7 +559,7 @@ static void sync_cmos_clock(struct work_struct *work) next.tv_nsec -= NSEC_PER_SEC; } queue_delayed_work(system_power_efficient_wq, - &sync_cmos_work, timespec_to_jiffies(&next)); + &sync_cmos_work, timespec64_to_jiffies(&next)); } void ntp_notify_cmos_timer(void) |