From: Akihiro Tsukada Date: Sat, 10 Mar 2012 14:38:13 +0000 (-0300) Subject: [media] dvb: earth-pt1: stop polling data when no one accesses the device X-Git-Tag: v3.4-rc1~110^2^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=847e87659620890bfc80ce7bf682f2a5354543b2;p=pandora-kernel.git [media] dvb: earth-pt1: stop polling data when no one accesses the device The driver started a kthread to poll the DMA buffers soon after probing, which relsuleted in 1000/sec sleeps and wakeups of the thread doing nothing useful until someone started feeding. This patch changes the creation and destruction of the kthread depending on the number of users. Signed-off-by: Akihiro Tsukada Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed