diff options
author | Jarod Wilson <jarod@redhat.com> | 2011-01-14 22:40:32 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-19 17:52:21 +0300 |
commit | 559d162e1ebcdb61e89f154f2c2db376af072b0e (patch) | |
tree | 296f29a525809e88d72c6a3b2579128d6396f6b9 /drivers/message/Makefile | |
parent | 324b04ba5da7918a2409f8113e46843bfbd89e67 (diff) | |
download | linux-559d162e1ebcdb61e89f154f2c2db376af072b0e.tar.xz |
[media] hdpvr: reduce latency of i2c read/write w/recycled buffer
The current hdpvr code kmalloc's a new buffer for every i2c read and
write. Rather than do that, lets allocate a buffer in the driver's
device struct and just use that every time.
The size I've chosen for the buffer is the maximum size I could
ascertain might be used by either ir-kbd-i2c or lirc_zilog, plus a bit
of padding (lirc_zilog may use up to 100 bytes on tx, rounded that up
to 128).
Note that this might also remedy user reports of very sluggish behavior
of IR receive with hdpvr hardware.
v2: make sure (len <= (dev->i2c_buf)) [Jean Delvare]
Reported-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/message/Makefile')
0 files changed, 0 insertions, 0 deletions