]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
[media] [staging] lirc_serial: allocate irq at init time
authorJarod Wilson <jarod@redhat.com>
Mon, 13 Jun 2011 18:32:26 +0000 (15:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 1 Jul 2011 19:32:45 +0000 (16:32 -0300)
commitc4b0afee3c1730cf9b0f6ad21729928d23d3918e
tree7c367bac18329f5b8a14e1e0f08551b49bd575d5
parent6a8c97ac92461ec57e36b10572e78d4221e8faa8
[media] [staging] lirc_serial: allocate irq at init time

There's really no good reason not to just grab the desired IRQ at driver
init time, instead of every time the lirc device node is accessed. This
also improves the speed and reliability with which a serial transmitter
can operate, as back-to-back transmission attempts (i.e., channel change
to a multi-digit channel) don't have to spend time acquiring and then
releasing the IRQ for every digit, sometimes multiple times, if lircd
has been told to use the min_repeat parameter.

CC: devel@driverdev.osuosl.org
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/lirc/lirc_serial.c