diff options
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index a76d2c18f150..e1600c775e1d 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -336,7 +336,7 @@ static void __cpuinit srat_detect_node(struct cpuinfo_x86 *c) | |||
336 | #if defined(CONFIG_NUMA) && defined(CONFIG_X86_64) | 336 | #if defined(CONFIG_NUMA) && defined(CONFIG_X86_64) |
337 | int cpu = smp_processor_id(); | 337 | int cpu = smp_processor_id(); |
338 | int node; | 338 | int node; |
339 | unsigned apicid = cpu_has_apic ? hard_smp_processor_id() : c->apicid; | 339 | unsigned apicid = c->apicid; |
340 | 340 | ||
341 | node = per_cpu(cpu_llc_id, cpu); | 341 | node = per_cpu(cpu_llc_id, cpu); |
342 | 342 | ||
@@ -481,6 +481,9 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) | |||
481 | } | 481 | } |
482 | if (c->x86 == 0x10 || c->x86 == 0x11) | 482 | if (c->x86 == 0x10 || c->x86 == 0x11) |
483 | set_cpu_cap(c, X86_FEATURE_REP_GOOD); | 483 | set_cpu_cap(c, X86_FEATURE_REP_GOOD); |
484 | |||
485 | /* get apicid instead of initial apic id from cpuid */ | ||
486 | c->apicid = hard_smp_processor_id(); | ||
484 | #else | 487 | #else |
485 | 488 | ||
486 | /* | 489 | /* |