[PATCH 0/2] Fix atomic operations so that atomic64_test passes on ARM

Will Deacon will.deacon at arm.com
Wed Jun 23 11:02:16 EDT 2010


A recently introduced Kernel feature is the atomic64_test on boot.
ARM fails these tests because the compiler is not correctly informed about
updates occuring to memory and is at liberty to constant-fold atomic64_t
variables.

This patch series adds the correct memory constraints to the atomic operations
on ARM and also enables all of the atomic64 tests in atomic64_test.c.

Will Deacon (2):
  ARM: atomic ops: add memory constraints to inline asm
  ARM: atomic64_test: add ARM as supported architecture

 arch/arm/include/asm/atomic.h |  123 +++++++++++++++++++++--------------------
 lib/atomic64_test.c           |    2 +-
 2 files changed, 63 insertions(+), 62 deletions(-)




More information about the linux-arm-kernel mailing list