You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
V4L/DVB (5209): Kthread api conversion for dvb_frontend and av7110 fix
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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8eec14295e
commit
6591691b25
@@ -525,7 +525,7 @@ static int dvb_frontend_thread(void *data)
|
|||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
up(&fepriv->sem); /* is locked when we enter the thread... */
|
up(&fepriv->sem); /* is locked when we enter the thread... */
|
||||||
|
restart:
|
||||||
timeout = wait_event_interruptible_timeout(fepriv->wait_queue,
|
timeout = wait_event_interruptible_timeout(fepriv->wait_queue,
|
||||||
dvb_frontend_should_wakeup(fe) || kthread_should_stop(),
|
dvb_frontend_should_wakeup(fe) || kthread_should_stop(),
|
||||||
fepriv->delay);
|
fepriv->delay);
|
||||||
@@ -536,7 +536,7 @@ static int dvb_frontend_thread(void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (try_to_freeze())
|
if (try_to_freeze())
|
||||||
continue;
|
goto restart;
|
||||||
|
|
||||||
if (down_interruptible(&fepriv->sem))
|
if (down_interruptible(&fepriv->sem))
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user