* [PATCH] Use atomic64_set for 64-bit case of atomic_long_set
@ 2006-01-15 17:10 Kyle McMartin
0 siblings, 0 replies; only message in thread
From: Kyle McMartin @ 2006-01-15 17:10 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
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 <kyle@parisc-linux.org>
---
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
diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h
index 0fada8f..42a95d9 100644
--- a/include/asm-generic/atomic.h
+++ b/include/asm-generic/atomic.h
@@ -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)
--
1.0.GIT
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-15 17:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-15 17:10 [PATCH] Use atomic64_set for 64-bit case of atomic_long_set Kyle McMartin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).