]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
[media] exynos4-is: use monotonic timestamps as advertized
authorArnd Bergmann <arnd@arndb.de>
Thu, 17 Sep 2015 21:19:35 +0000 (18:19 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 1 Oct 2015 11:27:59 +0000 (08:27 -0300)
commit2ef3b6fe9e6d7b22ca9f81a58d5ff089f7b4ef91
treedd4a357ebac777cc65b50649db7c187ff871eb96
parent280e87b2e6b92090ec6da8cd7e55100f6d4b11bc
[media] exynos4-is: use monotonic timestamps as advertized

The exynos4 fimc capture driver claims to use monotonic
timestamps but calls ktime_get_real_ts(). This is both
an incorrect API use, and a bad idea because of the y2038
problem and the fact that the wall clock time is not reliable
for timestamps across suspend or settimeofday().

This changes the driver to use the normal v4l2_get_timestamp()
function like all other drivers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/exynos4-is/fimc-capture.c