Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761999AbXENI3r (ORCPT ); Mon, 14 May 2007 04:29:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755557AbXENI3l (ORCPT ); Mon, 14 May 2007 04:29:41 -0400 Received: from mail2.asahi-net.or.jp ([202.224.39.198]:48713 "EHLO mail.asahi-net.or.jp" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754397AbXENI3k (ORCPT ); Mon, 14 May 2007 04:29:40 -0400 Date: Mon, 14 May 2007 17:28:52 +0900 Message-ID: From: Yoshinori Sato To: Andrew Morton Cc: lkml Subject: [PATCH] h8300 atomic.h update User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.93 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) Organization: SIOS Technology, Inc. MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 808 Lines: 25 add atomic_sub_and_test define. Signed-off-by: Yoshinori Sato 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/