summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/proc-armo/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/proc-armo/system.h')
-rw-r--r--include/asm-arm/proc-armo/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-arm/proc-armo/system.h b/include/asm-arm/proc-armo/system.h
index 471daf654..733a6cdff 100644
--- a/include/asm-arm/proc-armo/system.h
+++ b/include/asm-arm/proc-armo/system.h
@@ -110,6 +110,12 @@ extern __inline__ unsigned long __xchg(unsigned long x, volatile void *ptr, int
: "memory"); \
} while (0)
+/* For spinlocks etc */
+#define local_irq_save(x) __save_flags_cli(x)
+#define local_irq_restore(x) __restore_flags(x)
+#define local_irq_disable() __cli()
+#define local_irq_enable() __sti()
+
#ifdef __SMP__
#error SMP not supported
#else