]> git.baikalelectronics.ru Git - kernel.git/commit
openrisc: add futex_atomic_* implementations
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Tue, 15 Jul 2014 15:00:05 +0000 (18:00 +0300)
committerStafford Horne <shorne@gmail.com>
Fri, 24 Feb 2017 19:14:23 +0000 (04:14 +0900)
commit855cd0405c8628f2378504b95952d169724757ca
tree6a2429be3900fed07a307f4c477ca20afac324d6
parent7e5a15e95d29bab3103073f7859bc2c0250a2b83
openrisc: add futex_atomic_* implementations

Support for the futex_atomic_* operations by using the
load-link/store-conditional l.lwa/l.swa instructions.
Most openrisc cores provide these instructions now if not available,
emulation is provided.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
[shorne@gmail.com: remove OPENRISC_HAVE_INST_LWA_SWA config suggesed by
Alan Cox https://lkml.org/lkml/2014/7/23/666]
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/Kbuild
arch/openrisc/include/asm/futex.h [new file with mode: 0644]