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

Next file: linux-2.4.21/arch/i386/kernel/smpboot.c
Previous file: linux-2.4.21/arch/i386/kernel/setup.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/i386/kernel/smp.c linux-2.4.21/arch/i386/kernel/smp.c
@@ -214,7 +214,10 @@
 			/*
 			 * prepare target chip field
 			 */
-			cfg = __prepare_ICR2(cpu_to_logical_apicid(query_cpu));
+			if(clustered_apic_mode == CLUSTERED_APIC_XAPIC)
+				cfg = __prepare_ICR2(cpu_to_physical_apicid(query_cpu));
+			else
+				cfg = __prepare_ICR2(cpu_to_logical_apicid(query_cpu));
 			apic_write_around(APIC_ICR2, cfg);
 		
 			/*

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