summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/bootrom.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-11-02 15:32:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-06 16:41:22 +0100
commit31408d16c21bf19587bf7c862354ea1b37a2ed9c (patch)
tree25b9a92ad3eaf41931280517ed88ef00d891210c /drivers/staging/greybus/bootrom.c
parent4b2d9fe8795074626a29579e9afeedd52f1eeb83 (diff)
downloadop-kernel-dev-31408d16c21bf19587bf7c862354ea1b37a2ed9c.zip
op-kernel-dev-31408d16c21bf19587bf7c862354ea1b37a2ed9c.tar.gz
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>
Diffstat (limited to 'drivers/staging/greybus/bootrom.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud