patch-2.4.0-test1 linux/arch/i386/kernel/smp.c

Next file: linux/arch/i386/kernel/smpboot.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.3.99-pre9/linux/arch/i386/kernel/smp.c linux/arch/i386/kernel/smp.c
@@ -133,6 +133,11 @@
 	unsigned int cfg;
 
 	/*
+	 * Wait for idle.
+	 */
+	apic_wait_icr_idle();
+
+	/*
 	 * No need to touch the target chip field
 	 */
 	cfg = __prepare_ICR(shortcut, vector);
@@ -171,6 +176,11 @@
 
 	__save_flags(flags);
 	__cli();
+
+	/*
+	 * Wait for idle.
+	 */
+	apic_wait_icr_idle();
 
 	/*
 	 * prepare target chip field

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)