Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158706
b: refs/heads/master
c: 0d96b9f
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Sep 4, 2009
1 parent 826013e commit 0e528e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a925b4282d7f805deafde62001a83dbaf8be275
refs/heads/master: 0d96b9ff748b5f57d6f1d6d21209f5745245aadc
5 changes: 4 additions & 1 deletion trunk/arch/x86/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static void __cpuinit srat_detect_node(struct cpuinfo_x86 *c)
#if defined(CONFIG_NUMA) && defined(CONFIG_X86_64)
int cpu = smp_processor_id();
int node;
unsigned apicid = cpu_has_apic ? hard_smp_processor_id() : c->apicid;
unsigned apicid = c->apicid;

node = per_cpu(cpu_llc_id, cpu);

Expand Down Expand Up @@ -481,6 +481,9 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
}
if (c->x86 == 0x10 || c->x86 == 0x11)
set_cpu_cap(c, X86_FEATURE_REP_GOOD);

/* get apicid instead of initial apic id from cpuid */
c->apicid = hard_smp_processor_id();
#else

/*
Expand Down

0 comments on commit 0e528e9

Please sign in to comment.