diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/topology.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/topology.h b/include/asm-powerpc/topology.h index 87362a05542b..b7abd423c570 100644 --- a/include/asm-powerpc/topology.h +++ b/include/asm-powerpc/topology.h | |||
@@ -32,8 +32,13 @@ static inline int node_to_first_cpu(int node) | |||
32 | 32 | ||
33 | int of_node_to_nid(struct device_node *device); | 33 | int of_node_to_nid(struct device_node *device); |
34 | 34 | ||
35 | #ifdef CONFIG_PPC64 | ||
36 | #define pcibus_to_node(bus) (of_node_to_nid(bus->sysdata)) | ||
37 | #define pcibus_to_cpumask(bus) (node_to_cpumask(of_node_to_nid(bus->sysdata))) | ||
38 | #else | ||
35 | #define pcibus_to_node(node) (-1) | 39 | #define pcibus_to_node(node) (-1) |
36 | #define pcibus_to_cpumask(bus) (cpu_online_map) | 40 | #define pcibus_to_cpumask(bus) (cpu_online_map) |
41 | #endif | ||
37 | 42 | ||
38 | /* sched_domains SD_NODE_INIT for PPC64 machines */ | 43 | /* sched_domains SD_NODE_INIT for PPC64 machines */ |
39 | #define SD_NODE_INIT (struct sched_domain) { \ | 44 | #define SD_NODE_INIT (struct sched_domain) { \ |