Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292484
b: refs/heads/master
c: b1ada60
h: refs/heads/master
v: v3
  • Loading branch information
Anton Blanchard authored and Benjamin Herrenschmidt committed Mar 7, 2012
1 parent 380c530 commit 7e12951
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c15d7afbb2f9e2d3114b513306dae736b56f535
refs/heads/master: b1ada6010e234d6c53bfcd5a617610c9284846b8
2 changes: 2 additions & 0 deletions trunk/include/linux/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
* Atomically increments @v by 1, so long as @v is non-zero.
* Returns non-zero if @v was non-zero, and zero otherwise.
*/
#ifndef atomic_inc_not_zero
#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
#endif

/**
* atomic_inc_not_zero_hint - increment if not null
Expand Down

0 comments on commit 7e12951

Please sign in to comment.