Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3a5f10e3708e00c406f154bae412652ec3eb2b48 Commit: 3a5f10e3708e00c406f154bae412652ec3eb2b48 Parent: de61c9341ba144f6f21fdaae48ffbd811fc6637f Author: Mathieu Desnoyers <[EMAIL PROTECTED]> AuthorDate: Wed Feb 21 10:55:59 2007 +0100 Committer: Martin Schwidefsky <[EMAIL PROTECTED]> CommitDate: Wed Feb 21 10:55:59 2007 +0100
[S390] add atomic64_xchg to s390 Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> Cc: Heiko Carstens <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]> --- include/asm-s390/atomic.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/asm-s390/atomic.h b/include/asm-s390/atomic.h index af20c74..c17bdbf 100644 --- 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 git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html