patch-2.4.23 linux-2.4.23/include/asm-x86_64/smp.h

Next file: linux-2.4.23/include/asm-x86_64/system.h
Previous file: linux-2.4.23/include/asm-x86_64/ptrace.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/include/asm-x86_64/smp.h linux-2.4.23/include/asm-x86_64/smp.h
@@ -89,10 +89,8 @@
 	return GET_APIC_ID(*(unsigned *)(APIC_BASE+APIC_ID));
 }
 
-extern int apic_disabled;
-extern int slow_smp_processor_id(void);
-#define safe_smp_processor_id() \
-	(!apic_disabled ? hard_smp_processor_id() : slow_smp_processor_id())
+/* Assume apicid == cpuid */
+#define safe_smp_processor_id() (cpuid_ebx(1) >> 24) 
 
 #endif /* !ASSEMBLY */
 

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