diff options
| author | Arnd Bergmann <[email protected]> | 2017-11-27 10:25:56 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-12-08 11:26:24 -0500 |
| commit | aad2fa4c8b1d99a737f97b031cc3e262f158b02e (patch) | |
| tree | b82e5566477b2c7af406f43dbe7654c4391415c5 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 1d88f4bccfd87b6359f11032f2018893d531d18d (diff) | |
media: vivid: use ktime_t for timestamp calculation
timespec is generally deprecated because of the y2038 overflow.
In vivid, the usage is fine, since we are dealing with monotonic
timestamps, but we can also simplify the code by going to ktime_t.
Using ktime_divns() should be roughly as efficient as the old code,
since the constant 64-bit division gets turned into a multiplication
on modern platforms, and we save multiple 32-bit divisions that can be
expensive e.g. on ARMv7.
Tested-by: Hans Verkuil <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions