* [PATCH] Documentation typos
@ 2005-11-12 23:38 Arnaud Giersch
0 siblings, 0 replies; only message in thread
From: Arnaud Giersch @ 2005-11-12 23:38 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
Fix documentation typos.
Signed-off-by: Arnaud Giersch <arnaud.giersch@free.fr>
---
atomic.h | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/include/asm-mips/atomic.h b/include/asm-mips/atomic.h
--- a/include/asm-mips/atomic.h
+++ b/include/asm-mips/atomic.h
@@ -231,11 +231,12 @@ static __inline__ int atomic_sub_return(
}
/*
- * 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)
{
@@ -556,11 +557,12 @@ static __inline__ long atomic64_sub_retu
}
/*
- * 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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-12 23:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-12 23:38 [PATCH] Documentation typos Arnaud Giersch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox