lkml.org 
[lkml]   [2009]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Patch RFC 32/37] drivers/macintosh/adb: Do not claim that the semaphore is a mutex
    The usage of this "mutex" is non obvious and used as completion in
    some places. Make it a semaphore.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    ---
    drivers/macintosh/adb.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6-tip/drivers/macintosh/adb.c
    ===================================================================
    --- linux-2.6-tip.orig/drivers/macintosh/adb.c
    +++ linux-2.6-tip/drivers/macintosh/adb.c
    @@ -83,7 +83,7 @@ static struct adb_driver *adb_controller
    BLOCKING_NOTIFIER_HEAD(adb_client_list);
    static int adb_got_sleep;
    static int adb_inited;
    -static DECLARE_MUTEX(adb_probe_mutex);
    +static DEFINE_SEMAPHORE(adb_probe_mutex);
    static int sleepy_trackpad;
    static int autopoll_devs;
    int __adb_probe_sync;



    \
     
     \ /
      Last update: 2009-07-26 10:33    [W:0.022 / U:31.380 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site