summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm/bitops.h
diff options
context:
space:
mode:
authorStefan Kristiansson2014-05-12 13:08:26 +0200
committerStafford Horne2017-02-24 20:12:38 +0100
commit0e9f9fd20ce931cc2cf0519c56ae33fc74d656ad (patch)
tree502f8f067c7cc7ffcdd9042d404dc92e62b78f3c /arch/openrisc/include/asm/bitops.h
parentopenrisc: add l.lwa/l.swa emulation (diff)
downloadkernel-qcow2-linux-0e9f9fd20ce931cc2cf0519c56ae33fc74d656ad.tar.gz
kernel-qcow2-linux-0e9f9fd20ce931cc2cf0519c56ae33fc74d656ad.tar.xz
kernel-qcow2-linux-0e9f9fd20ce931cc2cf0519c56ae33fc74d656ad.zip
openrisc: add atomic bitops
This utilize the load-link/store-conditional l.lwa and l.swa instructions to implement the atomic bitops. When those 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, implement test_and_change_bit] Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/include/asm/bitops.h')
-rw-r--r--arch/openrisc/include/asm/bitops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/include/asm/bitops.h b/arch/openrisc/include/asm/bitops.h
index 3003cdad561b..689f56819d53 100644
--- a/arch/openrisc/include/asm/bitops.h
+++ b/arch/openrisc/include/asm/bitops.h
@@ -45,7 +45,7 @@
#include <asm-generic/bitops/hweight.h>
#include <asm-generic/bitops/lock.h>
-#include <asm-generic/bitops/atomic.h>
+#include <asm/bitops/atomic.h>
#include <asm-generic/bitops/non-atomic.h>
#include <asm-generic/bitops/le.h>
#include <asm-generic/bitops/ext2-atomic.h>