]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-ia64/topology.h
Pull bugzilla-5737 into release branch
[linux-2.6-omap-h63xx.git] / include / asm-ia64 / topology.h
index 412ef8e493a8cc2644ad79294f9907ddd8e4566c..616b5ed2aa7277e12885e6e35805d4fcacf748d9 100644 (file)
 /* Nodes w/o CPUs are preferred for memory allocations, see build_zonelists */
 #define PENALTY_FOR_NODE_WITH_CPUS 255
 
+/*
+ * Distance above which we begin to use zone reclaim
+ */
+#define RECLAIM_DISTANCE 15
+
 /*
  * Returns the number of the node containing CPU 'cpu'
  */
@@ -102,6 +107,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 */