From: Tom Rini Date: Thu, 14 May 2020 12:30:04 +0000 (-0400) Subject: x86: Convert from ACCESS_ONCE to READ/WRITE_ONCE X-Git-Tag: v2020.10-rc1~45^2~1^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897860ebc1a86506055f6225efff7888fe27d6ee;p=pandora-u-boot.git x86: Convert from ACCESS_ONCE to READ/WRITE_ONCE In order to update our 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 Cc: Bin Meng Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- diff --git a/arch/x86/include/asm/atomic.h b/arch/x86/include/asm/atomic.h index 4ca0f79bffb..14f811fc367 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); } /**