浏览代码

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>
Lucia Rosculete 13 年之前
父节点
当前提交
f7232f0808
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/semaphore.c

+ 1 - 1
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