Merge x86-64 update from Andi
[powerpc.git] / include / asm-x86_64 / smp.h
index cf8f969..d030409 100644 (file)
@@ -136,5 +136,11 @@ static __inline int logical_smp_processor_id(void)
 }
 #endif
 
+#ifdef CONFIG_SMP
+#define cpu_physical_id(cpu)           x86_cpu_to_apicid[cpu]
+#else
+#define cpu_physical_id(cpu)           boot_cpu_id
+#endif
+
 #endif