wok view v4l-dvb/stuff/d64b014c5253 @ rev 13191
cairo-clock: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 04 14:55:41 2012 +0200 (2012-08-04) |
parents | |
children |
line source
2 # HG changeset patch
3 # User Igor M. Liplianin <liplianin@me.by>
4 # Date 1293902019 -7200
5 # Node ID d64b014c5253e3699e025339619a6f7704f2fb81
6 # Parent d0a2ff731670f853f4e661e8542eacd29fd55131
7 V4L/DVB: dvb: Convert "mutex" to semaphore
9 From: Thomas Gleixner <tglx@linutronix.de>
11 Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
13 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
14 Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 ---
17 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c Fri Dec 31 20:04:34 2010 +0200
18 +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c Sat Jan 01 19:13:39 2011 +0200
19 @@ -715,7 +715,7 @@
21 kthread_stop(fepriv->thread);
23 - init_MUTEX (&fepriv->sem);
24 + sema_init(&fepriv->sem, 1);
25 fepriv->state = FESTATE_IDLE;
27 /* paranoia check in case a signal arrived */
28 @@ -2074,7 +2074,7 @@
29 }
30 fepriv = fe->frontend_priv;
32 - init_MUTEX (&fepriv->sem);
33 + sema_init(&fepriv->sem, 1);
34 init_waitqueue_head (&fepriv->wait_queue);
35 init_waitqueue_head (&fepriv->events.wait_queue);
36 mutex_init(&fepriv->events.mtx);