]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
h8300 atomic.h update
authorYoshinori Sato <ysato@users.sourceforge.jp>
Tue, 15 May 2007 08:41:07 +0000 (01:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 15 May 2007 15:54:00 +0000 (08:54 -0700)
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>
include/asm-h8300/atomic.h

index 21f54428c86b5ce6760073da0e1a85bc1f39c7fc..b4cf0ea97ede7a0975271b65f8f9d06d68abaea9 100644 (file)
@@ -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)
 {