summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-11-27 14:20:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 13:52:48 +0100
commitec8354b98b60410ec92935702fce404717be419b (patch)
tree7b91f8f598beb9e14123cae7ddb6e86442125758 /drivers/staging/sm750fb
parent6cf83f2a9e81c500819938fad3555081471212c6 (diff)
downloadop-kernel-dev-ec8354b98b60410ec92935702fce404717be419b.zip
op-kernel-dev-ec8354b98b60410ec92935702fce404717be419b.tar.gz
staging: imx: use ktime_t for timestamps
The imx media driver passes around monotonic timestamps in the deprecated 'timespec' format. This is not a problem for the driver, as they won't overflow, but moving to either timespec64 or ktime_t is preferred. I'm picking ktime_t for simplicity here. frame_interval_monitor() is the main function that changes, as it tries to compare a time interval in microseconds. The algorithm slightly changes here, to avoid 64-bit division. The code previously assumed that the error was at most 32-bit worth of microseconds here, so I'm making the same assumption but add an explicit test for it. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud