dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Lucia Rosculete 2012-03-03 16:18:47 +02:00 committed by Jiri Kosina
parent 4deb508e91
commit f7232f0808
1 changed files with 1 additions and 1 deletions

View File

@ -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