android_kernel_samsung_univ.../arch
Andrea Parri 7505779c61 locking/xchg/alpha: Add unconditional memory barrier to cmpxchg()
[ Upstream commit cb13b424e986aed68d74cbaec3449ea23c50e167 ]

Continuing along with the fight against smp_read_barrier_depends() [1]
(or rather, against its improper use), add an unconditional barrier to
cmpxchg.  This guarantees that dependency ordering is preserved when a
dependency is headed by an unsuccessful cmpxchg.  As it turns out, the
change could enable further simplification of LKMM as proposed in [2].

[1] https://marc.info/?l=linux-kernel&m=150884953419377&w=2
    https://marc.info/?l=linux-kernel&m=150884946319353&w=2
    https://marc.info/?l=linux-kernel&m=151215810824468&w=2
    https://marc.info/?l=linux-kernel&m=151215816324484&w=2

[2] https://marc.info/?l=linux-kernel&m=151881978314872&w=2

Signed-off-by: Andrea Parri <parri.andrea@gmail.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-alpha@vger.kernel.org
Link: http://lkml.kernel.org/r/1519152356-4804-1-git-send-email-parri.andrea@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:48:59 +02:00
..
alpha locking/xchg/alpha: Add unconditional memory barrier to cmpxchg() 2018-05-30 07:48:59 +02:00
arc ARC: Fix malformed ARC_EMUL_UNALIGNED default 2018-05-30 07:48:58 +02:00
arm ARM: OMAP1: clock: Fix debugfs_create_*() usage 2018-05-30 07:48:59 +02:00
arm64 arm64: spinlock: Fix theoretical trylock() A-B-A with LSE atomics 2018-05-30 07:48:56 +02:00
avr32
blackfin
c6x
cris
frv futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
h8300
hexagon futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
ia64 futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
m32r
m68k
metag
microblaze futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
mips MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS 2018-05-30 07:48:56 +02:00
mn10300
nios2
openrisc
parisc futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
powerpc powerpc/numa: Ensure nodes initialized for hotplug 2018-05-30 07:48:54 +02:00
s390 s390: use expoline thunks in the BPF JIT 2018-05-26 08:48:59 +02:00
score
sh futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
sparc futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
tile futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
um
unicore32
x86 x86/power: Fix swsusp_arch_resume prototype 2018-05-30 07:48:55 +02:00
xtensa futex: Remove duplicated code and fix undefined behaviour 2018-05-26 08:48:50 +02:00
.gitignore
Kconfig