mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04: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 <[email protected]> Acked-by: Oliver Endriss <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
8eec14295e
commit
6591691b25
1 changed files with 2 additions and 2 deletions
|
|
@ -525,7 +525,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);
|
||||
|
|
@ -536,7 +536,7 @@ static int dvb_frontend_thread(void *data)
|
|||
}
|
||||
|
||||
if (try_to_freeze())
|
||||
continue;
|
||||
goto restart;
|
||||
|
||||
if (down_interruptible(&fepriv->sem))
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue