diff options
author | Stefan Kristiansson | 2014-05-13 21:30:56 +0200 |
---|---|---|
committer | Stafford Horne | 2017-02-24 20:14:06 +0100 |
commit | bc19598f1dde267e5214e386b97bb647973275db (patch) | |
tree | fb35f0097281aa51ce3b629342f4a4287693a7de /arch/openrisc/include/asm/Kbuild | |
parent | openrisc: add cmpxchg and xchg implementations (diff) | |
download | kernel-qcow2-linux-bc19598f1dde267e5214e386b97bb647973275db.tar.gz kernel-qcow2-linux-bc19598f1dde267e5214e386b97bb647973275db.tar.xz kernel-qcow2-linux-bc19598f1dde267e5214e386b97bb647973275db.zip |
openrisc: add optimized atomic operations
Using the l.lwa and l.swa atomic instruction pair.
Most openrisc processor cores provide these instructions now. If the
instructions are 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]
[shorne@gmail.com: expand to implement all ops suggested by Peter
Zijlstra https://lkml.org/lkml/2017/2/20/317]
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/include/asm/Kbuild')
-rw-r--r-- | arch/openrisc/include/asm/Kbuild | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/openrisc/include/asm/Kbuild b/arch/openrisc/include/asm/Kbuild index 15e6ed526453..1cedd6309fa6 100644 --- a/arch/openrisc/include/asm/Kbuild +++ b/arch/openrisc/include/asm/Kbuild @@ -1,7 +1,6 @@ header-y += ucontext.h -generic-y += atomic.h generic-y += auxvec.h generic-y += barrier.h generic-y += bitsperlong.h |