summaryrefslogtreecommitdiffstats
path: root/tools/include/asm-generic/atomic-gcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/asm-generic/atomic-gcc.h')
-rw-r--r--tools/include/asm-generic/atomic-gcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/asm-generic/atomic-gcc.h b/tools/include/asm-generic/atomic-gcc.h
index 40b231fb95bd..4c1966f7c77a 100644
--- a/tools/include/asm-generic/atomic-gcc.h
+++ b/tools/include/asm-generic/atomic-gcc.h
@@ -22,7 +22,7 @@
*/
static inline int atomic_read(const atomic_t *v)
{
- return ACCESS_ONCE((v)->counter);
+ return READ_ONCE((v)->counter);
}
/**