Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: mon: use ktime_get_real_ts64 instead of getnstimeofday64

The two do the same thing, but we want to remove getnstimeofday64()
to have a more consistent interface.

It would be nice to use a monotonic clocksource here rather than
'real' time, but that would break the user interface.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arnd Bergmann and committed by
Greg Kroah-Hartman
61ef4b90 8f9cc83c

+4 -4
+4 -4
drivers/usb/mon/mon_bin.c
··· 95 95 unsigned short busnum; /* Bus number */ 96 96 char flag_setup; 97 97 char flag_data; 98 - s64 ts_sec; /* getnstimeofday64 */ 99 - s32 ts_usec; /* getnstimeofday64 */ 98 + s64 ts_sec; /* ktime_get_real_ts64 */ 99 + s32 ts_usec; /* ktime_get_real_ts64 */ 100 100 int status; 101 101 unsigned int len_urb; /* Length of data (submitted or actual) */ 102 102 unsigned int len_cap; /* Delivered length */ ··· 497 497 struct mon_bin_hdr *ep; 498 498 char data_tag = 0; 499 499 500 - getnstimeofday64(&ts); 500 + ktime_get_real_ts64(&ts); 501 501 502 502 spin_lock_irqsave(&rp->b_lock, flags); 503 503 ··· 637 637 unsigned int offset; 638 638 struct mon_bin_hdr *ep; 639 639 640 - getnstimeofday64(&ts); 640 + ktime_get_real_ts64(&ts); 641 641 642 642 spin_lock_irqsave(&rp->b_lock, flags); 643 643