patch-2.1.81 linux/arch/i386/kernel/irq.h

Next file: linux/arch/i386/kernel/smp.c
Previous file: linux/arch/i386/kernel/irq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.80/linux/arch/i386/kernel/irq.h linux/arch/i386/kernel/irq.h
@@ -19,7 +19,12 @@
 void setup_IO_APIC (void);
 void init_IO_APIC_traps(void);
 
-extern const unsigned int io_apic_irqs;
+#ifdef __SMP__
+ extern unsigned int io_apic_irqs;
+#else
+ extern const unsigned int io_apic_irqs;
+#endif
+
 #define IO_APIC_IRQ(x) ((1<<x) & io_apic_irqs)
 
 #define MAX_IRQ_SOURCES 128
@@ -36,6 +41,8 @@
 					*/
 
 #ifdef __SMP__
+
+#include <asm/atomic.h>
 
 static inline void irq_enter(int cpu, int irq)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov