MN10300: atomic_read() should ensure it emits a load

atomic_read() needs to ensure that it emits a load (which it can do by using
ACCESS_ONCE()).

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: David Howells <dhowells@redhat.com>

Changed files
+1 -1
arch
mn10300
include
asm
+1 -1
arch/mn10300/include/asm/atomic.h
··· 139 139 * Atomically reads the value of @v. Note that the guaranteed 140 140 * useful range of an atomic_t is only 24 bits. 141 141 */ 142 - #define atomic_read(v) ((v)->counter) 142 + #define atomic_read(v) (ACCESS_ONCE((v)->counter)) 143 143 144 144 /** 145 145 * atomic_set - set atomic variable