summaryrefslogtreecommitdiff
path: root/include/linux/interrupt.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2002-07-21 23:42:32 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-21 23:42:32 -0700
commit7ee2f6c993a829cc24cce819261bc2b6053348cc (patch)
tree5070cee11150ce4d489dcbc7b33c4165c2b71fe7 /include/linux/interrupt.h
parent8d27a6479b349d2431a114092824a52a2b1af037 (diff)
Ingo Molnar's update to remove irqlock (documentation and fixing
a number of drivers)
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r--include/linux/interrupt.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index 3870d26066e9..09e6b86ee763 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -44,6 +44,16 @@ enum {
#include <asm/hardirq.h>
#include <asm/softirq.h>
+/*
+ * Temporary defines for UP kernels, until all code gets fixed.
+ */
+#if !CONFIG_SMP
+# define cli() local_irq_disable()
+# define sti() local_irq_enable()
+# define save_flags(x) local_irq_save(x)
+# define restore_flags(x) local_irq_restore(x)
+# define save_and_cli(x) local_irq_save_off(x)
+#endif
/* PLEASE, avoid to allocate new softirqs, if you need not _really_ high