OpenCloudOS-Kernel/drivers/net/can/usb/peak_usb
Arnd Bergmann aa4f3c660a 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>
2017-12-01 09:14:22 +01:00
..
Makefile can: peak_usb: add support for PEAK new CANFD USB adapters 2015-01-28 14:47:06 +01:00
pcan_usb.c can: peak_usb: remove some 'struct timeval' users 2017-12-01 09:14:22 +01:00
pcan_usb_core.c can: peak_usb: use ktime_t consistently 2017-12-01 09:14:22 +01:00
pcan_usb_core.h can: peak_usb: use ktime_t consistently 2017-12-01 09:14:22 +01:00
pcan_usb_fd.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-04-26 22:39:08 -04:00
pcan_usb_pro.c can: peak_usb: remove some 'struct timeval' users 2017-12-01 09:14:22 +01:00
pcan_usb_pro.h can: peak_usb: export pcan_usb_pro functions 2015-01-28 14:47:06 +01:00