diff options
Diffstat (limited to 'include/asm-x86_64/topology.h')
-rw-r--r-- | include/asm-x86_64/topology.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/asm-x86_64/topology.h b/include/asm-x86_64/topology.h index 80c4e44d011c..c4e46e7fa7ba 100644 --- a/include/asm-x86_64/topology.h +++ b/include/asm-x86_64/topology.h | |||
@@ -7,8 +7,6 @@ | |||
7 | #include <asm/mpspec.h> | 7 | #include <asm/mpspec.h> |
8 | #include <asm/bitops.h> | 8 | #include <asm/bitops.h> |
9 | 9 | ||
10 | /* Map the K8 CPU local memory controllers to a simple 1:1 CPU:NODE topology */ | ||
11 | |||
12 | extern cpumask_t cpu_online_map; | 10 | extern cpumask_t cpu_online_map; |
13 | 11 | ||
14 | extern unsigned char cpu_to_node[]; | 12 | extern unsigned char cpu_to_node[]; |
@@ -57,10 +55,8 @@ extern int __node_distance(int, int); | |||
57 | #endif | 55 | #endif |
58 | 56 | ||
59 | #ifdef CONFIG_SMP | 57 | #ifdef CONFIG_SMP |
60 | #define topology_physical_package_id(cpu) \ | 58 | #define topology_physical_package_id(cpu) (cpu_data[cpu].phys_proc_id) |
61 | (phys_proc_id[cpu] == BAD_APICID ? -1 : phys_proc_id[cpu]) | 59 | #define topology_core_id(cpu) (cpu_data[cpu].cpu_core_id) |
62 | #define topology_core_id(cpu) \ | ||
63 | (cpu_core_id[cpu] == BAD_APICID ? 0 : cpu_core_id[cpu]) | ||
64 | #define topology_core_siblings(cpu) (cpu_core_map[cpu]) | 60 | #define topology_core_siblings(cpu) (cpu_core_map[cpu]) |
65 | #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu]) | 61 | #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu]) |
66 | #endif | 62 | #endif |