]> git.baikalelectronics.ru Git - kernel.git/commit
staging: greybus/loopback: use ktime_get() for time intervals
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Nov 2017 14:32:52 +0000 (15:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Nov 2017 15:41:22 +0000 (16:41 +0100)
commit47c9d3889e36027554d685a73821164c0512f5ae
tree25b9a92ad3eaf41931280517ed88ef00d891210c
parent91cb81772b11029d7443678519490f0d25926e5a
staging: greybus/loopback: use ktime_get() for time intervals

This driver is the only one using the deprecated timeval_to_ns()
helper. Changing it from do_gettimeofday() to ktime_get() makes
the code more efficient, more robust against concurrent
settimeofday(), more accurate and lets us get rid of that helper
in the future.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/loopback.c