diff options
Diffstat (limited to 'include/asm-powerpc/topology.h')
-rw-r--r-- | include/asm-powerpc/topology.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/asm-powerpc/topology.h b/include/asm-powerpc/topology.h index 87362a05542..bbc3844b086 100644 --- a/include/asm-powerpc/topology.h +++ b/include/asm-powerpc/topology.h | |||
@@ -2,7 +2,6 @@ | |||
2 | #define _ASM_POWERPC_TOPOLOGY_H | 2 | #define _ASM_POWERPC_TOPOLOGY_H |
3 | #ifdef __KERNEL__ | 3 | #ifdef __KERNEL__ |
4 | 4 | ||
5 | #include <linux/config.h> | ||
6 | 5 | ||
7 | struct sys_device; | 6 | struct sys_device; |
8 | struct device_node; | 7 | struct device_node; |
@@ -32,8 +31,13 @@ static inline int node_to_first_cpu(int node) | |||
32 | 31 | ||
33 | int of_node_to_nid(struct device_node *device); | 32 | int of_node_to_nid(struct device_node *device); |
34 | 33 | ||
35 | #define pcibus_to_node(node) (-1) | 34 | struct pci_bus; |
36 | #define pcibus_to_cpumask(bus) (cpu_online_map) | 35 | extern int pcibus_to_node(struct pci_bus *bus); |
36 | |||
37 | #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ | ||
38 | CPU_MASK_ALL : \ | ||
39 | node_to_cpumask(pcibus_to_node(bus)) \ | ||
40 | ) | ||
37 | 41 | ||
38 | /* sched_domains SD_NODE_INIT for PPC64 machines */ | 42 | /* sched_domains SD_NODE_INIT for PPC64 machines */ |
39 | #define SD_NODE_INIT (struct sched_domain) { \ | 43 | #define SD_NODE_INIT (struct sched_domain) { \ |
@@ -89,5 +93,10 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev, | |||
89 | 93 | ||
90 | #endif /* CONFIG_NUMA */ | 94 | #endif /* CONFIG_NUMA */ |
91 | 95 | ||
96 | #ifdef CONFIG_SMP | ||
97 | #include <asm/cputable.h> | ||
98 | #define smt_capable() (cpu_has_feature(CPU_FTR_SMT)) | ||
99 | #endif | ||
100 | |||
92 | #endif /* __KERNEL__ */ | 101 | #endif /* __KERNEL__ */ |
93 | #endif /* _ASM_POWERPC_TOPOLOGY_H */ | 102 | #endif /* _ASM_POWERPC_TOPOLOGY_H */ |