summaryrefslogtreecommitdiffstats
path: root/tools/arch/x86/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/arch/x86/include/asm/atomic.h')
-rw-r--r--tools/arch/x86/include/asm/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/arch/x86/include/asm/atomic.h b/tools/arch/x86/include/asm/atomic.h
index 7d8c3261a50d..1f5e26aae9fc 100644
--- a/tools/arch/x86/include/asm/atomic.h
+++ b/tools/arch/x86/include/asm/atomic.h
@@ -25,7 +25,7 @@
*/
static inline int atomic_read(const atomic_t *v)
{
- return ACCESS_ONCE((v)->counter);
+ return READ_ONCE((v)->counter);
}
/**
OpenPOWER on IntegriCloud