linux/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 genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
c6x genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
cris CRISv10: delete unused lib/dmacopy.c 2015-09-05 00:56:51 +02:00
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 Merge branch 'akpm' (patches from Andrew) 2015-09-10 18:19:42 -07:00
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 nios2: add Max10 defconfig 2015-09-08 18:16:02 +08:00
openrisc dma-mapping: consolidate dma_set_mask 2015-09-10 13:29:01 -07:00
parisc atomic, arch: Audit atomic_{read,set}() 2015-09-23 09:54:28 +02:00
powerpc Mostly stable material, a lot of ARM fixes. 2015-09-18 09:23:08 -07:00
s390 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2015-09-21 09:53:30 -07:00
score Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-09-01 14:04:50 -07:00
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 Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-09-01 14:04:50 -07:00
unicore32 genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
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 kexec: split kexec_load syscall from kexec core code 2015-09-10 13:29:01 -07:00