summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-queue.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-11-11 00:57:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 18:41:53 -0200
commitad689d54f979233c024c25a2221f4fd6f56543fe (patch)
treed28f3cb3958b387362c562c83ae5966e0a8874d9 /drivers/media/video/cx18/cx18-queue.h
parent127ce5f0adcca71eeeed2386ed4742ea6363a063 (diff)
downloadblackbird-op-linux-ad689d54f979233c024c25a2221f4fd6f56543fe.tar.gz
blackbird-op-linux-ad689d54f979233c024c25a2221f4fd6f56543fe.zip
V4L/DVB (13433): cx18: Remove duplicate list traversal when processing incoming MDLs
Update the incoming MDL's buffers' bytesused and sync the buffers for the cpu in one pass instead of two. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-queue.h')
-rw-r--r--drivers/media/video/cx18/cx18-queue.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/media/video/cx18/cx18-queue.h b/drivers/media/video/cx18/cx18-queue.h
index 96747e5e7c3c..88a6d34ad3bb 100644
--- a/drivers/media/video/cx18/cx18-queue.h
+++ b/drivers/media/video/cx18/cx18-queue.h
@@ -33,19 +33,6 @@ static inline void cx18_buf_sync_for_cpu(struct cx18_stream *s,
s->buf_size, s->dma);
}
-void _cx18_mdl_sync_for_cpu(struct cx18_stream *s, struct cx18_mdl *mdl);
-
-static inline void cx18_mdl_sync_for_cpu(struct cx18_stream *s,
- struct cx18_mdl *mdl)
-{
- if (list_is_singular(&mdl->buf_list))
- cx18_buf_sync_for_cpu(s, list_first_entry(&mdl->buf_list,
- struct cx18_buffer,
- list));
- else
- _cx18_mdl_sync_for_cpu(s, mdl);
-}
-
static inline void cx18_buf_sync_for_device(struct cx18_stream *s,
struct cx18_buffer *buf)
{
OpenPOWER on IntegriCloud