[S390] atomic: use ACCESS_ONCE() for atomic_read()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Feb 2011 12:13:56 +0000 (13:13 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Thu, 17 Feb 2011 12:13:58 +0000 (13:13 +0100)
commit03e3b5a0f18c53560de1984fbbfca146d31da2a5
treeefa9b199ef82067b8f030c6ffa062c061d4c732b
parent5da24b7627ff821e154a3aaecd5d60e1d8e228a5
[S390] atomic: use ACCESS_ONCE() for atomic_read()

Let's make atomic_read() and atomic_set() behave like on all/most other
architectures. Generated code is identical with gcc 4.5.2.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/atomic.h