projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69ff56c
)
[PATCH] Use atomic64_set for 64-bit case of atomic_long_set
author
Kyle McMartin
<kyle@parisc-linux.org>
Sun, 15 Jan 2006 17:10:55 +0000
(12:10 -0500)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 15 Jan 2006 18:17:07 +0000
(10:17 -0800)
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>
include/asm-generic/atomic.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-generic/atomic.h
b/include/asm-generic/atomic.h
index 0fada8f16dc6d8f6ca0a1f2907684edefdcf76c6..42a95d9a0641b4059a96b464d7d0a0e38cbd1b33 100644
(file)
--- 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);
+ atomic
64
_set(v, i);
}
static inline void atomic_long_inc(atomic_long_t *l)