timekeeping: Use timespec64 in timekeeping_inject_offset
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 Oct 2017 11:14:45 +0000 (13:14 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 30 Oct 2017 22:14:17 +0000 (15:14 -0700)
commit1572fa03784831b81ec26ec379374cf6bdec04fb
treef8a09ed5ae333a1e2d3828bcbb6f80cdc9f85724
parente0956dcc4ba74ec4b17e32fc9a156fcba1ef6610
timekeeping: Use timespec64 in timekeeping_inject_offset

As part of changing all the timekeeping code to use 64-bit
time_t consistently, this removes the uses of timeval
and timespec as much as possible from do_adjtimex() and
timekeeping_inject_offset(). The timeval_inject_offset_valid()
and timespec_inject_offset_valid() just complicate this,
so I'm folding them into the respective callers.

This leaves the actual 'struct timex' definition, which
is part of the user-space ABI and should be dealt with
separately when we have agreed on the ABI change.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c