diff options
| author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2007-05-15 04:41:07 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-15 11:54:00 -0400 |
| commit | b67405bbbba6bbd28dfd5337b29d5bc5a1140afb (patch) | |
| tree | 3518c2aa8e6a7c891f9c9f760c04692ba9b82e83 | |
| parent | 218f0aaee8a6b0e5772b95b154dea5b7701b33aa (diff) | |
h8300 atomic.h update
add atomic_sub_and_test define.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | include/asm-h8300/atomic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-h8300/atomic.h b/include/asm-h8300/atomic.h index 21f54428c86b..b4cf0ea97ede 100644 --- a/include/asm-h8300/atomic.h +++ b/include/asm-h8300/atomic.h | |||
| @@ -37,6 +37,7 @@ static __inline__ int atomic_sub_return(int i, atomic_t *v) | |||
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | #define atomic_sub(i, v) atomic_sub_return(i, v) | 39 | #define atomic_sub(i, v) atomic_sub_return(i, v) |
| 40 | #define atomic_sub_and_test(i,v) (atomic_sub_return(i, v) == 0) | ||
| 40 | 41 | ||
| 41 | static __inline__ int atomic_inc_return(atomic_t *v) | 42 | static __inline__ int atomic_inc_return(atomic_t *v) |
| 42 | { | 43 | { |
