diff options
Diffstat (limited to 'arch/x86/include/asm/topology.h')
-rw-r--r-- | arch/x86/include/asm/topology.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index f7c20d031422..fa4aa42e976d 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h | |||
@@ -249,8 +249,8 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu); | |||
249 | #ifdef ENABLE_TOPO_DEFINES | 249 | #ifdef ENABLE_TOPO_DEFINES |
250 | #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) | 250 | #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) |
251 | #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) | 251 | #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) |
252 | #define topology_core_cpumask(cpu) (&per_cpu(cpu_core_map, cpu)) | 252 | #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) |
253 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) | 253 | #define topology_thread_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) |
254 | 254 | ||
255 | /* indicates that pointers to the topology cpumask_t maps are valid */ | 255 | /* indicates that pointers to the topology cpumask_t maps are valid */ |
256 | #define arch_provides_topology_pointers yes | 256 | #define arch_provides_topology_pointers yes |
@@ -264,7 +264,7 @@ struct pci_bus; | |||
264 | void set_pci_bus_resources_arch_default(struct pci_bus *b); | 264 | void set_pci_bus_resources_arch_default(struct pci_bus *b); |
265 | 265 | ||
266 | #ifdef CONFIG_SMP | 266 | #ifdef CONFIG_SMP |
267 | #define mc_capable() (cpus_weight(per_cpu(cpu_core_map, 0)) != nr_cpu_ids) | 267 | #define mc_capable() (cpumask_weight(cpu_core_mask(0)) != nr_cpu_ids) |
268 | #define smt_capable() (smp_num_siblings > 1) | 268 | #define smt_capable() (smp_num_siblings > 1) |
269 | #endif | 269 | #endif |
270 | 270 | ||