]> 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)
commit09ee9128bb3d2580673473c5b204ac0956c069fc
tree6a2429be3900fed07a307f4c477ca20afac324d6
parent68746043f4e4cee4ac1e7300adc0bebb3e99caee
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]