1 #ifndef _ASM_PPC64_TOPOLOGY_H
2 #define _ASM_PPC64_TOPOLOGY_H
4 #include <linux/config.h>
5 #include <asm/mmzone.h>
9 static inline int cpu_to_node(int cpu)
13 node = numa_cpu_lookup_table[cpu];
22 #define parent_node(node) (node)
24 static inline cpumask_t node_to_cpumask(int node)
26 return numa_cpumask_lookup_table[node];
29 static inline int node_to_first_cpu(int node)
32 tmp = node_to_cpumask(node);
33 return first_cpu(tmp);
36 #define pcibus_to_cpumask(bus) (cpu_online_map)
38 #define nr_cpus_node(node) (nr_cpus_in_node[node])
40 /* Cross-node load balancing interval. */
41 #define NODE_BALANCE_RATE 10
43 #else /* !CONFIG_NUMA */
45 #include <asm-generic/topology.h>
47 #endif /* CONFIG_NUMA */
49 #endif /* _ASM_PPC64_TOPOLOGY_H */