diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-03-31 08:44:22 +0200 |
---|---|---|
committer | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-03-31 08:44:22 +0200 |
commit | 16606c768bcdfd4d0ce36f8263a81aac8324732f (patch) | |
tree | dd522e23599ef39f287957f41ecd720745822a47 /README | |
parent | 760482414d848730ddfb7bbf28d43c7e829f3eac (diff) | |
download | mediapointer-dvb-s2-16606c768bcdfd4d0ce36f8263a81aac8324732f.tar.gz mediapointer-dvb-s2-16606c768bcdfd4d0ce36f8263a81aac8324732f.tar.bz2 |
pxa-camera: simplify the .buf_queue path by merging two loops
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
pxa_dma_update_sg_tail() is called only once, runs exactly the same loop as the
caller and has to recalculate the last element in an sg-list, that the caller
has already calculated. Eliminate redundancy by merging the two loops and
re-using the calculated pointer. This also saves a bit of performance which is
always good during video-capture.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
---
drivers/media/video/pxa_camera.c | 20 ++++++--------------
1 files changed, 6 insertions(+), 14 deletions(-)
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions