1 #ifndef _ASM_POWERPC_TOPOLOGY_H
2 #define _ASM_POWERPC_TOPOLOGY_H
4 #include <linux/config.h>
8 #include <asm/mmzone.h>
10 static inline int cpu_to_node(int cpu)
12 return numa_cpu_lookup_table[cpu];
15 #define parent_node(node) (node)
17 static inline cpumask_t node_to_cpumask(int node)
19 return numa_cpumask_lookup_table[node];
22 static inline int node_to_first_cpu(int node)
25 tmp = node_to_cpumask(node);
26 return first_cpu(tmp);
29 #define pcibus_to_node(node) (-1)
30 #define pcibus_to_cpumask(bus) (cpu_online_map)
32 /* sched_domains SD_NODE_INIT for PPC64 machines */
33 #define SD_NODE_INIT (struct sched_domain) { \
34 .span = CPU_MASK_NONE, \
40 .imbalance_pct = 125, \
41 .cache_hot_time = (10*1000000), \
42 .cache_nice_tries = 1, \
43 .per_cpu_gain = 100, \
48 .flags = SD_LOAD_BALANCE \
50 | SD_BALANCE_NEWIDLE \
53 .last_balance = jiffies, \
54 .balance_interval = 1, \
55 .nr_balance_failed = 0, \
60 #include <asm-generic/topology.h>
62 #endif /* CONFIG_NUMA */
64 #endif /* _ASM_POWERPC_TOPOLOGY_H */