Skip to content

Commit

Permalink
[PATCH] i383 numa: fix numaq/summit apicid conflict
Browse files Browse the repository at this point in the history
This allows numaq to properly align cpus to their given node during
boot.  Pass logical apicid to apicid_to_node and allow the summit
sub-arch to use physical apicid (hard_smp_processor_id()).

Tested against numaq and summit based systems with no issues.

Signed-off-by: Keith Mannthey <kmannth@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Keith Mannthey authored and Linus Torvalds committed Oct 4, 2006
1 parent 708e168 commit 78b656b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/i386/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ static void map_cpu_to_logical_apicid(void)
{
int cpu = smp_processor_id();
int apicid = logical_smp_processor_id();
int node = apicid_to_node(hard_smp_processor_id());
int node = apicid_to_node(apicid);

if (!node_online(node))
node = first_online_node;
Expand Down
2 changes: 1 addition & 1 deletion include/asm-i386/mach-summit/mach_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static inline void clustered_apic_check(void)

static inline int apicid_to_node(int logical_apicid)
{
return apicid_2_node[logical_apicid];
return apicid_2_node[hard_smp_processor_id()];
}

/* Mapping from cpu number to logical apicid */
Expand Down

0 comments on commit 78b656b

Please sign in to comment.