diff options
| author | Arnd Bergmann <[email protected]> | 2017-11-27 14:20:00 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-11-28 13:52:48 +0100 |
| commit | ec8354b98b60410ec92935702fce404717be419b (patch) | |
| tree | 7b91f8f598beb9e14123cae7ddb6e86442125758 /tools/perf/scripts/python/bin | |
| parent | 6cf83f2a9e81c500819938fad3555081471212c6 (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions