From: Kyle McMartin Date: Sun, 15 Jan 2006 17:10:55 +0000 (-0500) Subject: [PATCH] Use atomic64_set for 64-bit case of atomic_long_set X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6b4977ce0fb9a989ba24fd6b757d07a566abc23d;p=openwrt%2Fstaging%2Fblogic.git [PATCH] Use atomic64_set for 64-bit case of atomic_long_set For some reason, the BITS_PER_LONG == 64 case of atomic_long_set was using atomic_set instead of atomic64_set. This does not jive with architectures which use an inline instead of a #define to implement their atomic_set() primitives. Signed-off-by: Kyle McMartin Signed-off-by: Linus Torvalds --- diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h index 0fada8f16dc6..42a95d9a0641 100644 --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/atomic.h @@ -35,7 +35,7 @@ static inline void atomic_long_set(atomic_long_t *l, long i) { atomic64_t *v = (atomic64_t *)l; - atomic_set(v, i); + atomic64_set(v, i); } static inline void atomic_long_inc(atomic_long_t *l)