summaryrefslogtreecommitdiffstats
path: root/kernel/semaphore.c
diff options
context:
space:
mode:
authorLucia Rosculete2012-03-03 15:18:47 +0100
committerJiri Kosina2012-04-06 02:15:55 +0200
commitf7232f0808d9c9899cbecf79296b0293217a27cd (patch)
treeca2c997e73b9cb9e0788a9a93e169b02c727f4a7 /kernel/semaphore.c
parentparisc: Use vsprintf extention %pf with builtin_return_address (diff)
downloadkernel-qcow2-linux-f7232f0808d9c9899cbecf79296b0293217a27cd.tar.gz
kernel-qcow2-linux-f7232f0808d9c9899cbecf79296b0293217a27cd.tar.xz
kernel-qcow2-linux-f7232f0808d9c9899cbecf79296b0293217a27cd.zip
semaphore: fix improper comment reference to mutex
Replace "mutex" with "semaphore" in down_trylock comment Signed-off-by: Lucia Rosculete <luciarosculete@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/semaphore.c')
-rw-r--r--kernel/semaphore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/semaphore.c b/kernel/semaphore.c
index 60636a4e25c3..4567fc020fe3 100644
--- a/kernel/semaphore.c
+++ b/kernel/semaphore.c
@@ -118,7 +118,7 @@ EXPORT_SYMBOL(down_killable);
* down_trylock - try to acquire the semaphore, without waiting
* @sem: the semaphore to be acquired
*
- * Try to acquire the semaphore atomically. Returns 0 if the mutex has
+ * Try to acquire the semaphore atomically. Returns 0 if the semaphore has
* been acquired successfully or 1 if it it cannot be acquired.
*
* NOTE: This return value is inverted from both spin_trylock and