summaryrefslogtreecommitdiff
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 5e9738f97bf3..97427e700e3b 100644
--- a/tools/include/asm-generic/atomic-gcc.h
+++ b/tools/include/asm-generic/atomic-gcc.h
@@ -21,7 +21,7 @@
*/
static inline int atomic_read(const atomic_t *v)
{
- return ACCESS_ONCE((v)->counter);
+ return READ_ONCE((v)->counter);
}
/**