Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14334
b: refs/heads/master
c: f10d14d
h: refs/heads/master
v: v3
  • Loading branch information
Arnaud Giersch authored and Ralf Baechle committed Nov 17, 2005
1 parent dd98b8a commit efd9549
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99289a4e8a9cb3fa6caa8fc4ebf57a33db497340
refs/heads/master: f10d14ddec8daf11a298f05ab3d644887df39830
14 changes: 8 additions & 6 deletions trunk/include/asm-mips/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit efd9549

Please sign in to comment.