Skip to content

atomic.h : standardizing atomic primitives

Mathieu Desnoyers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10atomic.h : Add atomic64 cmpxchg, xchg and add_unless to alphainclude/asm-alpha/atomic.h+46 -30 replies
2/10atomic.h : Complete atomic_long operations in asm-genericinclude/asm-generic/atomic.h+133 -00 replies
3/10atomic.h : i386 type safety fixinclude/asm-i386/atomic.h+3 -30 replies
4/10atomic.h : Add atomic64 cmpxchg, xchg and add_unless to ia64include/asm-ia64/atomic.h+22 -20 replies
5/10atomic.h : Add atomic64 cmpxchg, xchg and add_unless to mipsinclude/asm-mips/atomic.h+26 -30 replies
6/10atomic.h : Add atomic64 cmpxchg, xchg and add_unless to pariscinclude/asm-parisc/atomic.h+27 -30 replies
7/10atomic.h : Add atomic64 cmpxchg, xchg and add_unless to powerpcinclude/asm-powerpc/atomic.h include/asm-powerpc/bitops.h include/asm-powerpc/system.h+166 -30 replies
8/10atomic.h : Add atomic64 cmpxchg, xchg and add_unless to sparc64include/asm-sparc64/atomic.h+22 -20 replies
9/10atomic.h : Add atomic64_xchg to s390include/asm-s390/atomic.h+2 -00 replies
10/10atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64include/asm-x86_64/atomic.h+32 -43 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] atomic.h : standardizing atomic primitives

atomic.h : standardizing atomic primitives

It mainly adds support for missing 64 bits cmpxchg and 64 bits atomic add unless. Therefore, principally 64 bits architectures are targeted by these patches. It also adds the complete list of atomic operations on the atomic_long type.

These patches compile fine against :

arm
i686
ia64
m68k
mips
mipsel
x86_64
ppc 405
powerpc 970
s390
sparc
sparc64

I haven't built cross-compilers for other architectures yet.

These patches apply on 2.6.20