]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86_64/smp.h
Merge x86-64 update from Andi
[linux-2.6-omap-h63xx.git] / include / asm-x86_64 / smp.h
index cf8f969f90209941ff56f5d9e504b9d1895fa07b..d030409a8fb5c61a2663249894834384d106f7f1 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