projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8c4f2
)
arm: Bcmring: semaphore cleanup
author
Thomas Gleixner
<tglx@linutronix.de>
Tue, 7 Sep 2010 14:33:52 +0000
(14:33 +0000)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 12 Oct 2010 15:36:10 +0000
(17:36 +0200)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Leo Chen <leochen@broadcom.com>
LKML-Reference: <
20100907125057
.
371771121
@linutronix.de>
arch/arm/mach-bcmring/dma.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-bcmring/dma.c
b/arch/arm/mach-bcmring/dma.c
index 29c0a911df262f6d70b5c369afa4788c44f0c07a..77eb35c89cd02161ee1678b049b6d80490423c09 100644
(file)
--- a/
arch/arm/mach-bcmring/dma.c
+++ b/
arch/arm/mach-bcmring/dma.c
@@
-691,7
+691,7
@@
int dma_init(void)
memset(&gDMA, 0, sizeof(gDMA));
-
init_MUTEX_LOCKED(&gDMA.lock
);
+
sema_init(&gDMA.lock, 0
);
init_waitqueue_head(&gDMA.freeChannelQ);
/* Initialize the Hardware */
@@
-1574,7
+1574,7
@@
int dma_init_mem_map(DMA_MemMap_t *memMap)
{
memset(memMap, 0, sizeof(*memMap));
-
init_MUTEX(&memMap->lock
);
+
sema_init(&memMap->lock, 1
);
return 0;
}