]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: numa 32 using apicid_2_node to get node for logical_apicid
authorYinghai Lu <yhlu.kernel@gmail.com>
Wed, 25 Jun 2008 05:13:15 +0000 (22:13 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 11:10:37 +0000 (13:10 +0200)
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/mach-bigsmp/mach_apic.h
include/asm-x86/mach-default/mach_apic.h

index 8327907c79bf0092409f95ed14f6184a73f0434a..017c8c19ad8f874e0cc461c388f58716545eda34 100644 (file)
@@ -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)
index 21003b56ae959e0db51ebd1ac689ccb83ecbda37..0b2cde5e1b74b38641c4cea560784be0d7716a9b 100644 (file)
@@ -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