wok annotate v4l-dvb/stuff/d64b014c5253 @ rev 13208

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