diff options
author | Andy Walls <awalls@radix.net> | 2009-11-10 22:57:16 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:53 -0500 |
commit | ad689d54f979233c024c25a2221f4fd6f56543fe (patch) | |
tree | d28f3cb3958b387362c562c83ae5966e0a8874d9 /drivers/media/video/cx18/cx18-queue.h | |
parent | 127ce5f0adcca71eeeed2386ed4742ea6363a063 (diff) |
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.h | 13 |
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, | |||
33 | s->buf_size, s->dma); | 33 | s->buf_size, s->dma); |
34 | } | 34 | } |
35 | 35 | ||
36 | void _cx18_mdl_sync_for_cpu(struct cx18_stream *s, struct cx18_mdl *mdl); | ||
37 | |||
38 | static inline void cx18_mdl_sync_for_cpu(struct cx18_stream *s, | ||
39 | struct cx18_mdl *mdl) | ||
40 | { | ||
41 | if (list_is_singular(&mdl->buf_list)) | ||
42 | cx18_buf_sync_for_cpu(s, list_first_entry(&mdl->buf_list, | ||
43 | struct cx18_buffer, | ||
44 | list)); | ||
45 | else | ||
46 | _cx18_mdl_sync_for_cpu(s, mdl); | ||
47 | } | ||
48 | |||
49 | static inline void cx18_buf_sync_for_device(struct cx18_stream *s, | 36 | static inline void cx18_buf_sync_for_device(struct cx18_stream *s, |
50 | struct cx18_buffer *buf) | 37 | struct cx18_buffer *buf) |
51 | { | 38 | { |