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 13/37] s390: cio/crw: 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: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
drivers/s390/cio/crw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-tip/drivers/s390/cio/crw.c
===================================================================
--- linux-2.6-tip.orig/drivers/s390/cio/crw.c
+++ linux-2.6-tip/drivers/s390/cio/crw.c
@@ -137,7 +137,7 @@ void crw_handle_channel_report(void)
*/
static int __init crw_init_semaphore(void)
{
- init_MUTEX_LOCKED(&crw_semaphore);
+ semaphore_init_locked(&crw_semaphore);
return 0;
}
pure_initcall(crw_init_semaphore);



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