diff options
Diffstat (limited to 'arch/frv/include/asm/atomic.h')
-rw-r--r-- | arch/frv/include/asm/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/frv/include/asm/atomic.h b/arch/frv/include/asm/atomic.h index f6c3a1690101..102190a61d65 100644 --- a/arch/frv/include/asm/atomic.h +++ b/arch/frv/include/asm/atomic.h | |||
@@ -31,7 +31,7 @@ | |||
31 | */ | 31 | */ |
32 | 32 | ||
33 | #define ATOMIC_INIT(i) { (i) } | 33 | #define ATOMIC_INIT(i) { (i) } |
34 | #define atomic_read(v) (*(volatile int *)&(v)->counter) | 34 | #define atomic_read(v) ACCESS_ONCE((v)->counter) |
35 | #define atomic_set(v, i) (((v)->counter) = (i)) | 35 | #define atomic_set(v, i) (((v)->counter) = (i)) |
36 | 36 | ||
37 | #ifndef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS | 37 | #ifndef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS |