Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245697
b: refs/heads/master
c: c4b90c1
h: refs/heads/master
i:
  245695: 118f4d6
v: v3
  • Loading branch information
Tejun Heo committed May 2, 2011
1 parent 99eb679 commit 2edbf10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: acd26d611e60c1a7c2a14269ab99760f779121f4
refs/heads/master: c4b90c11992e61123071977c0e5556e59a70852c
10 changes: 10 additions & 0 deletions trunk/arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,16 @@ void __cpuinit setup_local_APIC(void)
/* always use the value from LDR */
early_per_cpu(x86_cpu_to_logical_apicid, cpu) =
logical_smp_processor_id();

/*
* Some NUMA implementations (NUMAQ) don't initialize apicid to
* node mapping during NUMA init. Now that logical apicid is
* guaranteed to be known, give it another chance. This is already
* a bit too late - percpu allocation has already happened without
* proper NUMA affinity.
*/
set_apicid_to_node(early_per_cpu(x86_cpu_to_apicid, cpu),
apic->x86_32_numa_cpu_node(cpu));
#endif

/*
Expand Down

0 comments on commit 2edbf10

Please sign in to comment.