Skip to content

Commit

Permalink
h8300 atomic.h update
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoshinori Sato authored and Linus Torvalds committed May 15, 2007
1 parent 218f0aa commit b67405b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-h8300/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ static __inline__ int atomic_sub_return(int i, atomic_t *v)
}

#define atomic_sub(i, v) atomic_sub_return(i, v)
#define atomic_sub_and_test(i,v) (atomic_sub_return(i, v) == 0)

static __inline__ int atomic_inc_return(atomic_t *v)
{
Expand Down

0 comments on commit b67405b

Please sign in to comment.