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 03/37] input: misc/hp_sdc_rtc: semaphore cleanup
The usage of these "mutex"es is non obvious and probably a completion in
some places. Make them semaphores.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Dmitry Torokhov <dtor@mail.ru>
---
drivers/input/misc/hp_sdc_rtc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6-tip/drivers/input/misc/hp_sdc_rtc.c
===================================================================
--- linux-2.6-tip.orig/drivers/input/misc/hp_sdc_rtc.c
+++ linux-2.6-tip/drivers/input/misc/hp_sdc_rtc.c
@@ -104,7 +104,7 @@ static int hp_sdc_rtc_do_read_bbrtc (str
t.endidx = 91;
t.seq = tseq;
t.act.semaphore = &tsem;
- init_MUTEX_LOCKED(&tsem);
+ semaphore_init_locked(&tsem);

if (hp_sdc_enqueue_transaction(&t)) return -1;

@@ -686,7 +686,7 @@ static int __init hp_sdc_rtc_init(void)
return -ENODEV;
#endif

- init_MUTEX(&i8042tregs);
+ semaphore_init(&i8042tregs);

if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr)))
return ret;



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