lkml.org 
[lkml]   [2010]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 22/30] dvb: Convert "mutex" to semaphore
    Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
    Cc: linux-media@vger.kernel.org

    ---
    drivers/media/dvb/dvb-core/dvb_frontend.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    Index: linux-2.6/drivers/media/dvb/dvb-core/dvb_frontend.c
    ===================================================================
    --- linux-2.6.orig/drivers/media/dvb/dvb-core/dvb_frontend.c
    +++ linux-2.6/drivers/media/dvb/dvb-core/dvb_frontend.c
    @@ -702,7 +702,7 @@ static void dvb_frontend_stop(struct dvb

    kthread_stop(fepriv->thread);

    - init_MUTEX (&fepriv->sem);
    + sema_init(&fepriv->sem, 1);
    fepriv->state = FESTATE_IDLE;

    /* paranoia check in case a signal arrived */
    @@ -2061,7 +2061,7 @@ int dvb_register_frontend(struct dvb_ada
    }
    fepriv = fe->frontend_priv;

    - init_MUTEX (&fepriv->sem);
    + sema_init(&fepriv->sem, 1);
    init_waitqueue_head (&fepriv->wait_queue);
    init_waitqueue_head (&fepriv->events.wait_queue);
    mutex_init(&fepriv->events.mtx);



    \
     
     \ /
      Last update: 2010-09-07 16:51    [W:4.208 / U:0.372 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site