Skip to content

Commit

Permalink
[PATCH] Use atomic64_set for 64-bit case of atomic_long_set
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kyle McMartin authored and Linus Torvalds committed Jan 15, 2006
1 parent 69ff56c commit 6b4977c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-generic/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6b4977c

Please sign in to comment.