]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-ia64/topology.h
[PATCH] lpfc 8.1.3: Remove unused MBhostaddr from lpfc_sli structure
[linux-2.6-omap-h63xx.git] / include / asm-ia64 / topology.h
index 412ef8e493a8cc2644ad79294f9907ddd8e4566c..3ee19dfa46dfde66f5723030f5a0e3a9e114bca6 100644 (file)
@@ -102,6 +102,13 @@ void build_cpu_to_node_map(void);
 
 #endif /* CONFIG_NUMA */
 
+#ifdef CONFIG_SMP
+#define topology_physical_package_id(cpu)      (cpu_data(cpu)->socket_id)
+#define topology_core_id(cpu)                  (cpu_data(cpu)->core_id)
+#define topology_core_siblings(cpu)            (cpu_core_map[cpu])
+#define topology_thread_siblings(cpu)          (cpu_sibling_map[cpu])
+#endif
+
 #include <asm-generic/topology.h>
 
 #endif /* _ASM_IA64_TOPOLOGY_H */