Skip to content
  • Arnd Bergmann's avatar
    time: Avoid timespec in udelay_test · 4a19bd3d
    Arnd Bergmann authored
    
    
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
    4a19bd3d