]> git.openfabrics.org - ~emulex/infiniband.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)
commitb83bfd1b0127b0963fcac39280280e365e7e04d8
tree3a7d76ffb8844af1ce9ffb5299d6f2726699c3e5
parent0938069fa08970f1c898970c1331a029efe9a1ce
[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