Skip to contentSkip to conversation

Use atomic64_set for 64-bit case of atomic_long_set

PATCH New Kyle McMartin 1 participant 1 message Jan 15, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

All 64-bit architectures I checked {powerpc,ia64,alpha,sparc64,x86_64} also #define atomic64_set, so there should be no visible difference to them.

 include/asm-generic/atomic.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

e653aabb9c3dbc63d2876bd0e8c31c8ad3f6179b

include/asm-generic/atomic.h +1 -1
index 0fada8f..42a95d9 100644
@@ -35,7 +35,7 @@ static inline void atomic_long_set(atomi
 {
 	atomic64_t *v = (atomic64_t *)l;
 
-	atomic_set(v, i);
+	atomic64_set(v, i);
 }
 
 static inline void atomic_long_inc(atomic_long_t *l)
Signature · 1 line
1.0.GIT