Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932114AbXBKTXh (ORCPT ); Sun, 11 Feb 2007 14:23:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932109AbXBKTX0 (ORCPT ); Sun, 11 Feb 2007 14:23:26 -0500 Received: from tomts22.bellnexxia.net ([209.226.175.184]:64205 "EHLO tomts22-srv.bellnexxia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932103AbXBKTXB (ORCPT ); Sun, 11 Feb 2007 14:23:01 -0500 From: Mathieu Desnoyers To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Mathieu Desnoyers Subject: [PATCH 09/10] atomic.h : Add atomic64_xchg to s390 Date: Sun, 11 Feb 2007 14:17:47 -0500 Message-Id: <1171221470286-git-send-email-mathieu.desnoyers@polymtl.ca> X-Mailer: git-send-email 1.4.4.4 In-Reply-To: <11712214684187-git-send-email-mathieu.desnoyers@polymtl.ca> References: <11712214684187-git-send-email-mathieu.desnoyers@polymtl.ca> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 717 Lines: 20 atomic.h : Add atomic64_xchg to s390 Signed-off-by: Mathieu Desnoyers --- a/include/asm-s390/atomic.h +++ b/include/asm-s390/atomic.h @@ -215,6 +215,8 @@ static __inline__ void atomic64_set_mask(unsigned long mask, atomic64_t * v) __CSG_LOOP(v, mask, "ogr"); } +#define atomic64_xchg(v, new) (xchg(&((v)->counter), new)) + static __inline__ long long atomic64_cmpxchg(atomic64_t *v, long long old, long long new) { - 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/