diff options
Diffstat (limited to 'include/asm-x86/topology.h')
| -rw-r--r-- | include/asm-x86/topology.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/asm-x86/topology.h b/include/asm-x86/topology.h index 22073268b481..4f35a0fb4f22 100644 --- a/include/asm-x86/topology.h +++ b/include/asm-x86/topology.h | |||
| @@ -193,9 +193,29 @@ extern cpumask_t cpu_coregroup_map(int cpu); | |||
| 193 | #define topology_thread_siblings(cpu) (per_cpu(cpu_sibling_map, cpu)) | 193 | #define topology_thread_siblings(cpu) (per_cpu(cpu_sibling_map, cpu)) |
| 194 | #endif | 194 | #endif |
| 195 | 195 | ||
| 196 | static inline void arch_fix_phys_package_id(int num, u32 slot) | ||
| 197 | { | ||
| 198 | } | ||
| 199 | |||
| 200 | struct pci_bus; | ||
| 201 | void set_pci_bus_resources_arch_default(struct pci_bus *b); | ||
| 202 | |||
| 196 | #ifdef CONFIG_SMP | 203 | #ifdef CONFIG_SMP |
| 197 | #define mc_capable() (boot_cpu_data.x86_max_cores > 1) | 204 | #define mc_capable() (boot_cpu_data.x86_max_cores > 1) |
| 198 | #define smt_capable() (smp_num_siblings > 1) | 205 | #define smt_capable() (smp_num_siblings > 1) |
| 199 | #endif | 206 | #endif |
| 200 | 207 | ||
| 208 | #ifdef CONFIG_NUMA | ||
| 209 | extern int get_mp_bus_to_node(int busnum); | ||
| 210 | extern void set_mp_bus_to_node(int busnum, int node); | ||
| 211 | #else | ||
| 212 | static inline int get_mp_bus_to_node(int busnum) | ||
| 213 | { | ||
| 214 | return 0; | ||
| 215 | } | ||
| 216 | static inline void set_mp_bus_to_node(int busnum, int node) | ||
| 217 | { | ||
| 218 | } | ||
| 219 | #endif | ||
| 220 | |||
| 201 | #endif | 221 | #endif |
