diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2012-09-15 14:14:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-21 07:56:43 -0500 |
commit | 8e6057b510aad354e017c6dfca7f386a0eb91b63 (patch) | |
tree | ac76cc2593f255325972f05bde025954f2d3b41c /drivers/media/pci/cx23885/cx23885-video.c | |
parent | abd23295648a9e3ae72a806e70a510d3dcd8b374 (diff) |
[media] v4l: Convert drivers to use monotonic timestamps
Convert drivers using wall clock time (CLOCK_REALTIME) to timestamp from the
monotonic timer (CLOCK_MONOTONIC).
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/cx23885/cx23885-video.c')
-rw-r--r-- | drivers/media/pci/cx23885/cx23885-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-video.c b/drivers/media/pci/cx23885/cx23885-video.c index 1a21926ca412..83975313e0f2 100644 --- a/drivers/media/pci/cx23885/cx23885-video.c +++ b/drivers/media/pci/cx23885/cx23885-video.c | |||
@@ -300,7 +300,7 @@ void cx23885_video_wakeup(struct cx23885_dev *dev, | |||
300 | if ((s16) (count - buf->count) < 0) | 300 | if ((s16) (count - buf->count) < 0) |
301 | break; | 301 | break; |
302 | 302 | ||
303 | do_gettimeofday(&buf->vb.ts); | 303 | v4l2_get_timestamp(&buf->vb.ts); |
304 | dprintk(2, "[%p/%d] wakeup reg=%d buf=%d\n", buf, buf->vb.i, | 304 | dprintk(2, "[%p/%d] wakeup reg=%d buf=%d\n", buf, buf->vb.i, |
305 | count, buf->count); | 305 | count, buf->count); |
306 | buf->vb.state = VIDEOBUF_DONE; | 306 | buf->vb.state = VIDEOBUF_DONE; |