time: Avoid timespec in udelay_test
authorArnd Bergmann <arnd@arndb.de>
Fri, 17 Jun 2016 16:03:02 +0000 (18:03 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 20 Jun 2016 19:47:26 +0000 (12:47 -0700)
commit4a19bd3d22d51a0c89db10879dacaffa0f52aecf
treed6b94fc167155d529e1db63d762a83e01ae462e3
parente6c2682a1da36a2e79d9bab470412374434ce89e
time: Avoid timespec in udelay_test

udelay_test_single() uses ktime_get_ts() to get two timespec values
and calculate the difference between them, while udelay_test_show()
uses the same to printk() the current monotonic time.

Both of these are y2038 safe on all machines, but we want to
get rid of struct timespec anyway, so this converts the code to
use ktime_get_ns() and ktime_get_ts64() respectively.

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