]> git.baikalelectronics.ru Git - kernel.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)
commit888e27ab316bfbcd180fb19430c146df9dfac460
tree7c367bac18329f5b8a14e1e0f08551b49bd575d5
parent320853d31d7e4b902e0f123b1ab27ee2536f28bc
[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