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 06/37] input: serio/hp_sdc: semaphore cleanup
The usage of this "mutex" is non obvious and probably a completion in
some places. Make it a semaphore.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Dmitry Torokhov <dtor@mail.ru>
---
drivers/input/serio/hp_sdc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-tip/drivers/input/serio/hp_sdc.c
===================================================================
--- linux-2.6-tip.orig/drivers/input/serio/hp_sdc.c
+++ linux-2.6-tip/drivers/input/serio/hp_sdc.c
@@ -1039,7 +1039,7 @@ static int __init hp_sdc_register(void)
return hp_sdc.dev_err;
}

- init_MUTEX_LOCKED(&tq_init_sem);
+ semaphore_init(&tq_init_sem);

tq_init.actidx = 0;
tq_init.idx = 1;



\
 
 \ /
  Last update: 2009-07-26 10:25    [W:0.161 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site