diff options
author | Tom Rini <trini@konsulko.com> | 2020-05-14 08:30:04 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-01 10:11:03 -0400 |
commit | 897860ebc1a86506055f6225efff7888fe27d6ee (patch) | |
tree | 4684b369d148d098e4edb52375eb676f864e3a12 /arch/x86 | |
parent | f2ff327e9354cdfb13c9885d5e5c646dff3ca53b (diff) | |
download | u-boot-897860ebc1a86506055f6225efff7888fe27d6ee.tar.gz |
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/x86')
-rw-r--r-- | arch/x86/include/asm/atomic.h | 2 |
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); } /** |