patch-2.0.31 linux/arch/i386/kernel/smp.c

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

diff -u --recursive --new-file v2.0.30/linux/arch/i386/kernel/smp.c linux/arch/i386/kernel/smp.c
@@ -1202,3 +1202,15 @@
 	apic_read(APIC_SPIV);		/* Dummy read */
 	apic_write(APIC_EOI, 0);	/* Docs say use 0 for future compatibility */
 }
+
+void irq_deadlock_detected(void)
+{
+  printk("IRQ DEADLOCK DETECTED BY CPU %d\n", smp_processor_id());
+  __asm__("hlt");
+}
+
+void non_irq_deadlock_detected(void)
+{
+  printk("NON-IRQ DEADLOCK DETECTED BY CPU %d\n", smp_processor_id());
+  __asm__("hlt");
+}

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