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 05/37] input: serio/hil_mlc: 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/hil_mlc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6-tip/drivers/input/serio/hil_mlc.c
===================================================================
--- linux-2.6-tip.orig/drivers/input/serio/hil_mlc.c
+++ linux-2.6-tip/drivers/input/serio/hil_mlc.c
@@ -914,15 +914,15 @@ int hil_mlc_register(hil_mlc *mlc)
mlc->ostarted = 0;

rwlock_init(&mlc->lock);
- init_MUTEX(&mlc->osem);
+ semaphore_init(&mlc->osem);

- init_MUTEX(&mlc->isem);
+ semaphore_init(&mlc->isem);
mlc->icount = -1;
mlc->imatch = 0;

mlc->opercnt = 0;

- init_MUTEX_LOCKED(&(mlc->csem));
+ semaphore_init(&(mlc->csem));

hil_mlc_clear_di_scratch(mlc);
hil_mlc_clear_di_map(mlc, 0);



\
 
 \ /
  Last update: 2009-07-26 10:25    [W:0.230 / U:11.936 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site