time: Use ktime_get_real_seconds() in time syscall
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Jun 2018 14:08:00 +0000 (16:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 19 Jun 2018 07:56:26 +0000 (09:56 +0200)
commitf5a89295e2f566d8e9f1d4f3d524d8d3c966958c
treefead7f5edd20a471c903c86ca7f7b46a2ea22a72
parent9ffc59d57228d74809700be6f7ecb1db10292f05
time: Use ktime_get_real_seconds() in time syscall

Both get_seconds() and do_gettimeofday() are deprecated. Change the time()
implementation to use the replacement function instead.

Obviously the system call will still overflow in 2038, but this gets us
closer to removing the old helper functions.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: y2038@lists.linaro.org
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lkml.kernel.org/r/20180618140811.2998503-2-arnd@arndb.de
kernel/time/time.c