diff options
Diffstat (limited to 'arch/x86/kernel/cpu/intel.c')
-rw-r--r-- | arch/x86/kernel/cpu/intel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 959417b8cd6..4a8ac9d4ff5 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c | |||
@@ -76,7 +76,7 @@ static void __cpuinit Intel_errata_workarounds(struct cpuinfo_x86 *c) | |||
76 | /* | 76 | /* |
77 | * find out the number of processor cores on the die | 77 | * find out the number of processor cores on the die |
78 | */ | 78 | */ |
79 | static int __cpuinit num_cpu_cores(struct cpuinfo_x86 *c) | 79 | static int __cpuinit intel_num_cpu_cores(struct cpuinfo_x86 *c) |
80 | { | 80 | { |
81 | unsigned int eax, ebx, ecx, edx; | 81 | unsigned int eax, ebx, ecx, edx; |
82 | 82 | ||
@@ -183,7 +183,7 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c) | |||
183 | * let's use the legacy cpuid vector 0x1 and 0x4 for topology | 183 | * let's use the legacy cpuid vector 0x1 and 0x4 for topology |
184 | * detection. | 184 | * detection. |
185 | */ | 185 | */ |
186 | c->x86_max_cores = num_cpu_cores(c); | 186 | c->x86_max_cores = intel_num_cpu_cores(c); |
187 | detect_ht(c); | 187 | detect_ht(c); |
188 | } | 188 | } |
189 | 189 | ||
@@ -210,9 +210,8 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c) | |||
210 | 210 | ||
211 | if (cpu_has_xmm2) | 211 | if (cpu_has_xmm2) |
212 | set_cpu_cap(c, X86_FEATURE_LFENCE_RDTSC); | 212 | set_cpu_cap(c, X86_FEATURE_LFENCE_RDTSC); |
213 | if (c->x86 == 15) { | 213 | if (c->x86 == 15) |
214 | set_cpu_cap(c, X86_FEATURE_P4); | 214 | set_cpu_cap(c, X86_FEATURE_P4); |
215 | } | ||
216 | if (c->x86 == 6) | 215 | if (c->x86 == 6) |
217 | set_cpu_cap(c, X86_FEATURE_P3); | 216 | set_cpu_cap(c, X86_FEATURE_P3); |
218 | if (cpu_has_ds) { | 217 | if (cpu_has_ds) { |