wok-stable view v4l-dvb/stuff/d64b014c5253 @ rev 10329
ftjam: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 22 00:59:41 2011 +0000 (2011-05-22) |
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);