From 9791d5121855de5bd6d22e2751b8fe82024c034a Mon Sep 17 00:00:00 2001 From: Yoshinori Sato Date: Tue, 15 May 2007 01:41:07 -0700 Subject: [PATCH] --- yaml --- r: 56390 b: refs/heads/master c: b67405bbbba6bbd28dfd5337b29d5bc5a1140afb h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-h8300/atomic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b0e11ea84ff9..8cc966755468 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 218f0aaee8a6b0e5772b95b154dea5b7701b33aa +refs/heads/master: b67405bbbba6bbd28dfd5337b29d5bc5a1140afb diff --git a/trunk/include/asm-h8300/atomic.h b/trunk/include/asm-h8300/atomic.h index 21f54428c86b..b4cf0ea97ede 100644 --- a/trunk/include/asm-h8300/atomic.h +++ b/trunk/include/asm-h8300/atomic.h @@ -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) {