]> asedeno.scripts.mit.edu Git - linux.git/commit
media: v4l2-event: keep track of the timestamp in ns
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 21 Jan 2019 13:32:22 +0000 (08:32 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 7 Feb 2019 17:11:15 +0000 (12:11 -0500)
commit63635b54e07f646aa1d8e54c96b099162a226f7d
tree1cf4e238dd9cbe6c2e49df799acb53d2707b98eb
parent81a43d10b8ed0e165bbd1e134ca7261a9608f389
media: v4l2-event: keep track of the timestamp in ns

Internally use ktime_get_ns() to get the timestamp of the event.
Only convert to timespec when interfacing with userspace.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-event.c
include/media/v4l2-event.h