aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ktime.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-10-19 13:14:49 +0200
committerJohn Stultz <john.stultz@linaro.org>2017-10-30 15:17:20 -0700
commit6546911ed369af8d747215ff8b6144618e91c6ab (patch)
treedd207663bb415a316ca37641d4c719a07ac0f32e /include/linux/ktime.h
parenttime: Move time_t conversion helpers to time32.h (diff)
downloadwireguard-linux-6546911ed369af8d747215ff8b6144618e91c6ab.tar.xz
wireguard-linux-6546911ed369af8d747215ff8b6144618e91c6ab.zip
time: Move old timekeeping interfaces to timekeeping32.h
The interfaces based on 'struct timespec' and 'unsigned long' seconds are no longer recommended for new code, and we are trying to migrate to ktime_t based interfaces and other y2038-safe variants. This moves all the legacy interfaces from linux/timekeeping.h into a new timekeeping32.h to better document this. 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>
Diffstat (limited to 'include/linux/ktime.h')
-rw-r--r--include/linux/ktime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ktime.h b/include/linux/ktime.h
index 0c8bd45c8206..5b9fddbaac41 100644
--- a/include/linux/ktime.h
+++ b/include/linux/ktime.h
@@ -270,5 +270,6 @@ static inline ktime_t ms_to_ktime(u64 ms)
}
# include <linux/timekeeping.h>
+# include <linux/timekeeping32.h>
#endif