lkml.org 
[lkml]   [2010]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[tip:core/locking] net: Ppp_async: semaphore cleanup
    Commit-ID:  0bce198b7688911e072bd65032ab9278b577ee93
    Gitweb: http://git.kernel.org/tip/0bce198b7688911e072bd65032ab9278b577ee93
    Author: Thomas Gleixner <tglx@linutronix.de>
    AuthorDate: Tue, 7 Sep 2010 14:32:22 +0000
    Committer: Thomas Gleixner <tglx@linutronix.de>
    CommitDate: Tue, 12 Oct 2010 17:36:09 +0200

    net: Ppp_async: semaphore cleanup

    Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Christoph Hellwig <hch@infradead.org>
    Acked-by: David Miller <davem@davemloft.net>
    LKML-Reference: <20100907125055.460765783@linutronix.de>

    ---
    drivers/net/ppp_async.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp_async.c
    index af50a53..78d70a6 100644
    --- a/drivers/net/ppp_async.c
    +++ b/drivers/net/ppp_async.c
    @@ -184,7 +184,7 @@ ppp_asynctty_open(struct tty_struct *tty)
    tasklet_init(&ap->tsk, ppp_async_process, (unsigned long) ap);

    atomic_set(&ap->refcnt, 1);
    - init_MUTEX_LOCKED(&ap->dead_sem);
    + sema_init(&ap->dead_sem, 0);

    ap->chan.private = ap;
    ap->chan.ops = &async_ops;

    \
     
     \ /
      Last update: 2010-10-12 17:59    [W:0.020 / U:1.376 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site