acrn-kernel/arch
Peter Zijlstra 62e8a3258b atomic, arch: Audit atomic_{read,set}()
This patch makes sure that atomic_{read,set}() are at least
{READ,WRITE}_ONCE().

We already had the 'requirement' that atomic_read() should use
ACCESS_ONCE(), and most archs had this, but a few were lacking.
All are now converted to use READ_ONCE().

And, by a symmetry and general paranoia argument, upgrade atomic_set()
to use WRITE_ONCE().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: james.hogan@imgtec.com
Cc: linux-kernel@vger.kernel.org
Cc: oleg@redhat.com
Cc: will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-09-23 09:54:28 +02:00
..
alpha atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
arc atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
arm atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
arm64 atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
avr32 atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
blackfin
c6x
cris
frv atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
h8300 atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
hexagon atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
ia64 atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
m32r atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
m68k atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
metag atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
microblaze
mips atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
mn10300 atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
nios2
openrisc
parisc atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
powerpc
s390
score
sh atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
sparc atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
tile atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
um
unicore32
x86 atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
xtensa atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
.gitignore
Kconfig