summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/arch-v10/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-cris/arch-v10/atomic.h')
-rw-r--r--include/asm-cris/arch-v10/atomic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v10/atomic.h b/include/asm-cris/arch-v10/atomic.h
new file mode 100644
index 000000000000..6ef5e7d09024
--- /dev/null
+++ b/include/asm-cris/arch-v10/atomic.h
@@ -0,0 +1,7 @@
+#ifndef __ASM_CRIS_ARCH_ATOMIC__
+#define __ASM_CRIS_ARCH_ATOMIC__
+
+#define cris_atomic_save(addr, flags) local_irq_save(flags);
+#define cris_atomic_restore(addr, flags) local_irq_restore(flags);
+
+#endif
OpenPOWER on IntegriCloud