summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/mach-default
diff options
context:
space:
mode:
authorYinghai Lu2008-06-25 07:13:15 +0200
committerIngo Molnar2008-07-08 13:10:37 +0200
commitf47f9d538ecc938bed589e9d39ad7b454f3b506c (patch)
tree8232bb36c7760457c4edc93603b3ecd6b264f574 /include/asm-x86/mach-default
parentx86: change size if e820_update/remove_range (diff)
downloadkernel-qcow2-linux-f47f9d538ecc938bed589e9d39ad7b454f3b506c.tar.gz
kernel-qcow2-linux-f47f9d538ecc938bed589e9d39ad7b454f3b506c.tar.xz
kernel-qcow2-linux-f47f9d538ecc938bed589e9d39ad7b454f3b506c.zip
x86: numa 32 using apicid_2_node to get node for logical_apicid
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/mach-default')
-rw-r--r--include/asm-x86/mach-default/mach_apic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-x86/mach-default/mach_apic.h b/include/asm-x86/mach-default/mach_apic.h
index 21003b56ae95..0b2cde5e1b74 100644
--- a/include/asm-x86/mach-default/mach_apic.h
+++ b/include/asm-x86/mach-default/mach_apic.h
@@ -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