diff options
| author | Arnd Bergmann <[email protected]> | 2017-11-27 08:20:00 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-12-08 11:22:04 -0500 |
| commit | 1d88f4bccfd87b6359f11032f2018893d531d18d (patch) | |
| tree | 9ac4f9718781879ab98710738ee3deb6bab3ea90 /tools/perf/scripts/python | |
| parent | 6c542426b610c14acff0e815e5fe513abdbb9a16 (diff) | |
media: 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: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions