]> err.no Git - linux-2.6/blobdiff - include/asm-x86_64/smp.h
[IPV6]: Export ipv6_opt_accepted
[linux-2.6] / include / asm-x86_64 / smp.h
index 592161e979e5396ce508472c42850dd82e5262e4..d030409a8fb5c61a2663249894834384d106f7f1 100644 (file)
@@ -81,6 +81,8 @@ extern int safe_smp_processor_id(void);
 extern int __cpu_disable(void);
 extern void __cpu_die(unsigned int cpu);
 extern void prefill_possible_map(void);
+extern unsigned num_processors;
+extern unsigned disabled_cpus;
 
 #endif /* !ASSEMBLY */
 
@@ -134,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