]> 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 d8aae4da3978945adae91064c3ebbe8d0b29f01b..3ee19dfa46dfde66f5723030f5a0e3a9e114bca6 100644 (file)
 #include <asm/smp.h>
 
 #ifdef CONFIG_NUMA
+
+/* Nodes w/o CPUs are preferred for memory allocations, see build_zonelists */
+#define PENALTY_FOR_NODE_WITH_CPUS 255
+
 /*
  * Returns the number of the node containing CPU 'cpu'
  */
@@ -98,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 */