diff options
Diffstat (limited to 'include/asm-powerpc/topology.h')
-rw-r--r-- | include/asm-powerpc/topology.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/asm-powerpc/topology.h b/include/asm-powerpc/topology.h index 8f7ee16781a4..50c014007de7 100644 --- a/include/asm-powerpc/topology.h +++ b/include/asm-powerpc/topology.h | |||
@@ -32,7 +32,14 @@ static inline int node_to_first_cpu(int node) | |||
32 | int of_node_to_nid(struct device_node *device); | 32 | int of_node_to_nid(struct device_node *device); |
33 | 33 | ||
34 | struct pci_bus; | 34 | struct pci_bus; |
35 | #ifdef CONFIG_PCI | ||
35 | extern int pcibus_to_node(struct pci_bus *bus); | 36 | extern int pcibus_to_node(struct pci_bus *bus); |
37 | #else | ||
38 | static inline int pcibus_to_node(struct pci_bus *bus) | ||
39 | { | ||
40 | return -1; | ||
41 | } | ||
42 | #endif | ||
36 | 43 | ||
37 | #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ | 44 | #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ |
38 | CPU_MASK_ALL : \ | 45 | CPU_MASK_ALL : \ |
@@ -96,7 +103,13 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev, | |||
96 | 103 | ||
97 | #ifdef CONFIG_SMP | 104 | #ifdef CONFIG_SMP |
98 | #include <asm/cputable.h> | 105 | #include <asm/cputable.h> |
99 | #define smt_capable() (cpu_has_feature(CPU_FTR_SMT)) | 106 | #define smt_capable() (cpu_has_feature(CPU_FTR_SMT)) |
107 | |||
108 | #ifdef CONFIG_PPC64 | ||
109 | #include <asm/smp.h> | ||
110 | |||
111 | #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu]) | ||
112 | #endif | ||
100 | #endif | 113 | #endif |
101 | 114 | ||
102 | #endif /* __KERNEL__ */ | 115 | #endif /* __KERNEL__ */ |