]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (7830): dvb_ca_en50221: Fix High CPU load in 'top' due to budget_av slot...
authorRobert Schedel <r.schedel@yahoo.de>
Sat, 3 May 2008 15:58:36 +0000 (12:58 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 14 May 2008 05:54:02 +0000 (02:54 -0300)
commit71a35fe2a345eb3704e1f1b4da65451d3e2b8c2e
tree5222b0da35875a3351af2990f333a181030a09c9
parentfa146c6dceffa68fa12f8d0b797ab9753fa1c792
V4L/DVB (7830): dvb_ca_en50221: Fix High CPU load in 'top' due to budget_av slot polling

This change addresses kernel bug #10459: In kernel 2.6.25 the
budget_av driver polls for an CI slot in 100ms intervals (because no
interrupt solution for budget_av cards is feasible due to HW reasons).
If no CI/CAM is connected to the DVB card, polling times out only after 250ms.
This periodic polling leads to high CPU load.

The change increases the polling interval for empty slots from 100ms to 5s.
Intervals for remaining slot states (invalid, in progress, ready) are unchanged,
as they are either temporary conditions or no timeout should occur.

Signed-off-by: Robert Schedel <r.schedel@yahoo.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-core/dvb_ca_en50221.c