summaryrefslogtreecommitdiff
path: root/arch/score/include/asm/bitops.h
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
committerYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
commit8e4bff4cab0ddac6060645b0715210484d02ff40 (patch)
tree3a5c3024371a04692a3a6d9974d001cdff8ebf84 /arch/score/include/asm/bitops.h
Initial file dump from open source releaseHEADmaster
Diffstat (limited to 'arch/score/include/asm/bitops.h')
-rw-r--r--arch/score/include/asm/bitops.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/score/include/asm/bitops.h b/arch/score/include/asm/bitops.h
new file mode 100644
index 00000000..a304096b
--- /dev/null
+++ b/arch/score/include/asm/bitops.h
@@ -0,0 +1,15 @@
+#ifndef _ASM_SCORE_BITOPS_H
+#define _ASM_SCORE_BITOPS_H
+
+#include <asm/byteorder.h> /* swab32 */
+
+/*
+ * clear_bit() doesn't provide any barrier for the compiler.
+ */
+#define smp_mb__before_clear_bit() barrier()
+#define smp_mb__after_clear_bit() barrier()
+
+#include <asm-generic/bitops.h>
+#include <asm-generic/bitops/__fls.h>
+
+#endif /* _ASM_SCORE_BITOPS_H */