Skip to content

Commit

Permalink
x86: numa 32 using apicid_2_node to get node for logical_apicid
Browse files Browse the repository at this point in the history
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 232b957 commit f47f9d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/mach-bigsmp/mach_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static inline int multi_timer_check(int apic, int irq)

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

static inline int cpu_present_to_apicid(int mps_cpu)
Expand Down
4 changes: 4 additions & 0 deletions include/asm-x86/mach-default/mach_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ static inline void setup_apic_routing(void)

static inline int apicid_to_node(int logical_apicid)
{
#ifdef CONFIG_SMP
return apicid_2_node[hard_smp_processor_id()];
#else
return 0;
#endif
}
#endif

Expand Down

0 comments on commit f47f9d5

Please sign in to comment.