]> git.baikalelectronics.ru Git - kernel.git/commit
[media] DVB: dvb_frontend: fix delayed thread exit
authorAndreas Oberritter <obi@linuxtv.org>
Sat, 10 Dec 2011 00:37:00 +0000 (21:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Dec 2011 19:16:01 +0000 (17:16 -0200)
commitb0cfd689ea62c3951a55c604b1af72e89717ca40
tree7a0dc9653474e821ebd2de3ee1d2f6faf9cab75f
parent6ef1bc8458ed5f7e5eee7796f618961955d25409
[media] DVB: dvb_frontend: fix delayed thread exit

There are some issues and miss-behaves at the dvb fe thread:

1) dvb_shutdown_timeout should be dvb_shutdown_timeout * HZ
   instead of (dvb_shutdown_timeout * HZ + 1);

2) add a memory barrier to warrant that all CPU's will consider the
   new value for release_jiffies;

3) wake up dvb thread also when fepriv->exit == DVB_FE_NO_EXIT.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c