diff options
author | Kyle McMartin <kyle@parisc-linux.org> | 2006-01-15 12:10:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-15 13:17:07 -0500 |
commit | 6b4977ce0fb9a989ba24fd6b757d07a566abc23d (patch) | |
tree | a65447b794fe9c9f15c34565c3b5fccc22d261d5 /include | |
parent | 69ff56c166629224e9fe914b8543021dc2f001f0 (diff) |
[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 <kyle@parisc-linux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
35 | { | 35 | { |
36 | atomic64_t *v = (atomic64_t *)l; | 36 | atomic64_t *v = (atomic64_t *)l; |
37 | 37 | ||
38 | atomic_set(v, i); | 38 | atomic64_set(v, i); |
39 | } | 39 | } |
40 | 40 | ||
41 | static inline void atomic_long_inc(atomic_long_t *l) | 41 | static inline void atomic_long_inc(atomic_long_t *l) |