projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265cdc9
)
mmc: Convert "mutex" to semaphore
author
Thomas Gleixner
<tglx@linutronix.de>
Tue, 14 Sep 2010 11:12:35 +0000
(07:12 -0400)
committer
Chris Ball
<cjb@laptop.org>
Sat, 23 Oct 2010 13:11:12 +0000
(21:11 +0800)
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mmc@vger.kernel.org
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/queue.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/card/queue.c
b/drivers/mmc/card/queue.c
index 7c3392e5072256813bf55dd80bbc375ad923f511..91c99e76c8cc903f1b363aefb68e050907bb516d 100644
(file)
--- a/
drivers/mmc/card/queue.c
+++ b/
drivers/mmc/card/queue.c
@@
-208,7
+208,7
@@
int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock
sg_init_table(mq->sg, host->max_segs);
}
-
init_MUTEX(&mq->thread_sem
);
+
sema_init(&mq->thread_sem, 1
);
mq->thread = kthread_run(mmc_queue_thread, mq, "mmcqd");
if (IS_ERR(mq->thread)) {