patch-2.1.82 linux/arch/i386/kernel/irq.c

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

diff -u --recursive --new-file v2.1.81/linux/arch/i386/kernel/irq.c linux/arch/i386/kernel/irq.c
@@ -639,6 +639,7 @@
 	irq_exit(cpu, irq);
 }
 
+#ifdef __SMP__
 /*
  * FIXME! This is completely broken.
  */
@@ -679,6 +680,7 @@
 
 	enable_IO_APIC_irq(irq);
 }
+#endif
 
 /*
  * do_IRQ handles all normal device IRQ's (the special
@@ -714,8 +716,10 @@
 	kstat.irqs[cpu][irq]++;
 
 	do_lowlevel_IRQ = do_8259A_IRQ;
+#ifdef __SMP__
 	if (IO_APIC_IRQ(irq))
 		do_lowlevel_IRQ = do_ioapic_IRQ;
+#endif
 	
 	do_lowlevel_IRQ(irq, cpu, &regs);
 

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