diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-03 17:31:37 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-12-01 09:14:22 +0100 |
commit | aa4f3c660a24bfdcc8f03f21f6e7be714b16b8e8 (patch) | |
tree | 0aaccd400de897b80efc7789fb17cd2f5fe46516 /drivers/net/can/vxcan.c | |
parent | d5888a1e75c79957822f0c107e61ee301091da10 (diff) | |
download | lwn-aa4f3c660a24bfdcc8f03f21f6e7be714b16b8e8.tar.gz lwn-aa4f3c660a24bfdcc8f03f21f6e7be714b16b8e8.zip |
can: peak_usb: use ktime_t consistently
This changes the calculation of the timestamps to use ktime_t
instead of struct timeval as the base. This gets rid of one
of the few remaining users of the deprecated ktime_to_timeval()
and timeval_to_ktime() helpers.
The code should also get more efficient, as we have now removed
all of the divisions.
I have left the cut-off for resetting the counters as 4.200
seconds, in order to leave the behavior unchanged otherwise.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/vxcan.c')
0 files changed, 0 insertions, 0 deletions