]> asedeno.scripts.mit.edu Git - linux.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)
commit4ac46db1aaf16a009a8318cdba3acf03de85bcea
tree6a2429be3900fed07a307f4c477ca20afac324d6
parentbc19598f1dde267e5214e386b97bb647973275db
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]