1 #ifndef _ASM_POWERPC_TOPOLOGY_H
2 #define _ASM_POWERPC_TOPOLOGY_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_nice_tries = 1, \
42 .per_cpu_gain = 100, \
47 .flags = SD_LOAD_BALANCE \
49 | SD_BALANCE_NEWIDLE \
52 .last_balance = jiffies, \
53 .balance_interval = 1, \
54 .nr_balance_failed = 0, \
57 extern void __init dump_numa_cpu_topology(void);
61 static inline void dump_numa_cpu_topology(void) {}
63 #include <asm-generic/topology.h>
65 #endif /* CONFIG_NUMA */
67 #endif /* __KERNEL__ */
68 #endif /* _ASM_POWERPC_TOPOLOGY_H */