| #ifndef _ASM_POWERPC_TOPOLOGY_H |
| #define _ASM_POWERPC_TOPOLOGY_H |
| #include <linux/config.h> |
| static inline int cpu_to_node(int cpu) |
| return numa_cpu_lookup_table[cpu]; |
| #define parent_node(node) (node) |
| static inline cpumask_t node_to_cpumask(int node) |
| return numa_cpumask_lookup_table[node]; |
| static inline int node_to_first_cpu(int node) |
| tmp = node_to_cpumask(node); |
| #define pcibus_to_node(node) (-1) |
| #define pcibus_to_cpumask(bus) (cpu_online_map) |
| /* sched_domains SD_NODE_INIT for PPC64 machines */ |
| #define SD_NODE_INIT (struct sched_domain) { \ |
| .flags = SD_LOAD_BALANCE \ |
| .last_balance = jiffies, \ |
| .nr_balance_failed = 0, \ |
| extern void __init dump_numa_cpu_topology(void); |
| static inline void dump_numa_cpu_topology(void) {} |
| #include <asm-generic/topology.h> |
| #endif /* _ASM_POWERPC_TOPOLOGY_H */ |