]> git.baikalelectronics.ru Git - kernel.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)
commit2416bc7620942c12858fabb798e06e85effbd212
tree5222b0da35875a3351af2990f333a181030a09c9
parent104baf0d6319d00607ab5d02e00c45463ad69687
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