diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-08 15:36:57 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-08 15:36:57 -0200 |
commit | bd9e31ab6498eb6f6ca6d3310aee24d406f82082 (patch) | |
tree | 3d27ead722f103fac39b9c4228387ec4e3b75fbc /linux/drivers | |
parent | d1bc6812d76b02a59a3f18a6511610e747915e8b (diff) | |
download | mediapointer-dvb-s2-bd9e31ab6498eb6f6ca6d3310aee24d406f82082.tar.gz mediapointer-dvb-s2-bd9e31ab6498eb6f6ca6d3310aee24d406f82082.tar.bz2 |
kthread api conversion for dvb_frontend and av7110 fix
From: akpm@linux-foundation.org <akpm@linux-foundation.org>
avoid double-up(), pointed out by Oliver.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index 283830bb7..f39e3504d 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -530,7 +530,7 @@ static int dvb_frontend_thread(void *data) while (1) { up(&fepriv->sem); /* is locked when we enter the thread... */ - +restart: timeout = wait_event_interruptible_timeout(fepriv->wait_queue, dvb_frontend_should_wakeup(fe) || kthread_should_stop(), fepriv->delay); @@ -542,7 +542,7 @@ static int dvb_frontend_thread(void *data) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) if (try_to_freeze()) - continue; + goto restart; #else if (current->flags & PF_FREEZE) { refrigerator (PF_FREEZE); |