diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-i386/processor.h | 8 | ||||
| -rw-r--r-- | include/asm-i386/topology.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index 55ea992da329..b32346d62e10 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h | |||
| @@ -71,8 +71,12 @@ struct cpuinfo_x86 { | |||
| 71 | cpumask_t llc_shared_map; /* cpus sharing the last level cache */ | 71 | cpumask_t llc_shared_map; /* cpus sharing the last level cache */ |
| 72 | #endif | 72 | #endif |
| 73 | unsigned char x86_max_cores; /* cpuid returned max cores value */ | 73 | unsigned char x86_max_cores; /* cpuid returned max cores value */ |
| 74 | unsigned char booted_cores; /* number of cores as seen by OS */ | ||
| 75 | unsigned char apicid; | 74 | unsigned char apicid; |
| 75 | #ifdef CONFIG_SMP | ||
| 76 | unsigned char booted_cores; /* number of cores as seen by OS */ | ||
| 77 | __u8 phys_proc_id; /* Physical processor id. */ | ||
| 78 | __u8 cpu_core_id; /* Core id */ | ||
| 79 | #endif | ||
| 76 | } __attribute__((__aligned__(SMP_CACHE_BYTES))); | 80 | } __attribute__((__aligned__(SMP_CACHE_BYTES))); |
| 77 | 81 | ||
| 78 | #define X86_VENDOR_INTEL 0 | 82 | #define X86_VENDOR_INTEL 0 |
| @@ -104,8 +108,6 @@ extern struct cpuinfo_x86 cpu_data[]; | |||
| 104 | #define current_cpu_data boot_cpu_data | 108 | #define current_cpu_data boot_cpu_data |
| 105 | #endif | 109 | #endif |
| 106 | 110 | ||
| 107 | extern int phys_proc_id[NR_CPUS]; | ||
| 108 | extern int cpu_core_id[NR_CPUS]; | ||
| 109 | extern int cpu_llc_id[NR_CPUS]; | 111 | extern int cpu_llc_id[NR_CPUS]; |
| 110 | extern char ignore_fpu_irq; | 112 | extern char ignore_fpu_irq; |
| 111 | 113 | ||
diff --git a/include/asm-i386/topology.h b/include/asm-i386/topology.h index b94e5eeef917..aa4185ee81fb 100644 --- a/include/asm-i386/topology.h +++ b/include/asm-i386/topology.h | |||
| @@ -28,10 +28,8 @@ | |||
| 28 | #define _ASM_I386_TOPOLOGY_H | 28 | #define _ASM_I386_TOPOLOGY_H |
| 29 | 29 | ||
| 30 | #ifdef CONFIG_X86_HT | 30 | #ifdef CONFIG_X86_HT |
| 31 | #define topology_physical_package_id(cpu) \ | 31 | #define topology_physical_package_id(cpu) (cpu_data[cpu].phys_proc_id) |
| 32 | (phys_proc_id[cpu] == BAD_APICID ? -1 : phys_proc_id[cpu]) | 32 | #define topology_core_id(cpu) (cpu_data[cpu].cpu_core_id) |
| 33 | #define topology_core_id(cpu) \ | ||
| 34 | (cpu_core_id[cpu] == BAD_APICID ? 0 : cpu_core_id[cpu]) | ||
| 35 | #define topology_core_siblings(cpu) (cpu_core_map[cpu]) | 33 | #define topology_core_siblings(cpu) (cpu_core_map[cpu]) |
| 36 | #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu]) | 34 | #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu]) |
| 37 | #endif | 35 | #endif |
