[<prev] [next>] [day] [month] [year] [list]
Message-ID: <m2mz07hkqj.wl%ysato@users.sourceforge.jp>
Date: Mon, 14 May 2007 17:28:52 +0900
From: Yoshinori Sato <ysato@...rs.sourceforge.jp>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: [PATCH] h8300 atomic.h update
add atomic_sub_and_test define.
Signed-off-by: Yoshinori Sato <ysato@...rs.sourceforge.jp>
diff --git a/include/asm-h8300/atomic.h b/include/asm-h8300/atomic.h
index 21f5442..b4cf0ea 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)
}
#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)
{
--
Yoshinori Sato
<ysato@...rs.sourceforge.jp>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists