summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-05-14 08:30:04 -0400
committerTom Rini <trini@konsulko.com>2020-07-01 10:11:03 -0400
commit897860ebc1a86506055f6225efff7888fe27d6ee (patch)
tree4684b369d148d098e4edb52375eb676f864e3a12 /arch
parentf2ff327e9354cdfb13c9885d5e5c646dff3ca53b (diff)
downloadu-boot-897860ebc1a86506055f6225efff7888fe27d6ee.tar.gz
u-boot-897860ebc1a86506055f6225efff7888fe27d6ee.tar.xz
u-boot-897860ebc1a86506055f6225efff7888fe27d6ee.zip
x86: Convert from ACCESS_ONCE to READ/WRITE_ONCE
In order to update our <linux/compiler.h> to a newer version that no longer provides ACCESS_ONCE() but only READ_ONCE()/WRITE_ONCE() we need to convert arch/x86/include/asm/atomic.h to the other macros. Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/atomic.h b/arch/x86/include/asm/atomic.h
index 4ca0f79bff..14f811fc36 100644
--- a/arch/x86/include/asm/atomic.h
+++ b/arch/x86/include/asm/atomic.h
@@ -23,7 +23,7 @@ typedef struct { volatile int counter; } atomic_t;
*/
static inline int atomic_read(const atomic_t *v)
{
- return ACCESS_ONCE((v)->counter);
+ return READ_ONCE((v)->counter);
}
/**