diff options
author | Arnaud Giersch | 2005-11-13 00:38:18 +0100 |
---|---|---|
committer | Ralf Baechle | 2005-11-17 17:23:49 +0100 |
commit | f10d14ddec8daf11a298f05ab3d644887df39830 (patch) | |
tree | cb720c4553760ac37937eb56ef2255ae8aec70dd /include/asm-mips/atomic.h | |
parent | [MIPS] Add const qualifier to writes##bwlq. (diff) | |
download | kernel-qcow2-linux-f10d14ddec8daf11a298f05ab3d644887df39830.tar.gz kernel-qcow2-linux-f10d14ddec8daf11a298f05ab3d644887df39830.tar.xz kernel-qcow2-linux-f10d14ddec8daf11a298f05ab3d644887df39830.zip |
[MIPS] Fix documentation typos.
Signed-off-by: Arnaud Giersch <arnaud.giersch@free.fr>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/atomic.h')
-rw-r--r-- | include/asm-mips/atomic.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/asm-mips/atomic.h b/include/asm-mips/atomic.h index 2c87b41e69ba..55c37c106ef0 100644 --- a/include/asm-mips/atomic.h +++ b/include/asm-mips/atomic.h @@ -231,11 +231,12 @@ static __inline__ int atomic_sub_return(int i, atomic_t * v) } /* - * atomic_sub_if_positive - add integer to atomic variable + * atomic_sub_if_positive - conditionally subtract integer from atomic variable + * @i: integer value to subtract * @v: pointer of type atomic_t * - * Atomically test @v and decrement if it is greater than 0. - * The function returns the old value of @v minus 1. + * Atomically test @v and subtract @i if @v is greater or equal than @i. + * The function returns the old value of @v minus @i. */ static __inline__ int atomic_sub_if_positive(int i, atomic_t * v) { @@ -577,11 +578,12 @@ static __inline__ long atomic64_sub_return(long i, atomic64_t * v) } /* - * atomic64_sub_if_positive - add integer to atomic variable + * atomic64_sub_if_positive - conditionally subtract integer from atomic variable + * @i: integer value to subtract * @v: pointer of type atomic64_t * - * Atomically test @v and decrement if it is greater than 0. - * The function returns the old value of @v minus 1. + * Atomically test @v and subtract @i if @v is greater or equal than @i. + * The function returns the old value of @v minus @i. */ static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v) { |