]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc: do not wake up rc thread unless there is something to do
authorSean Young <sean@mess.org>
Mon, 13 Aug 2012 11:59:47 +0000 (08:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Aug 2012 19:19:12 +0000 (16:19 -0300)
commitb03aa39f9321bd373f9afee96f5e8f946d42141b
tree3a7d76ffb8844af1ce9ffb5299d6f2726699c3e5
parent3be22de573ad3af8e3b6d05f4f5f2efbaf4ea820
[media] rc: do not wake up rc thread unless there is something to do

The TechnoTrend USB IR Receiver sends 125 ISO URBs per second, even when
there is no IR activity. Reduce the number of wake ups from the other
drivers too.

This saves about 0.25ms/s on a 2.4GHz Core 2 according to powertop.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/fintek-cir.c
drivers/media/rc/iguanair.c
drivers/media/rc/ir-raw.c
drivers/media/rc/mceusb.c
drivers/media/rc/ttusbir.c