diff options
-rw-r--r-- | include/asm-x86/mach-bigsmp/mach_apic.h | 2 | ||||
-rw-r--r-- | include/asm-x86/mach-default/mach_apic.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-x86/mach-bigsmp/mach_apic.h b/include/asm-x86/mach-bigsmp/mach_apic.h index 8327907c79bf..017c8c19ad8f 100644 --- a/include/asm-x86/mach-bigsmp/mach_apic.h +++ b/include/asm-x86/mach-bigsmp/mach_apic.h | |||
@@ -81,7 +81,7 @@ static inline int multi_timer_check(int apic, int irq) | |||
81 | 81 | ||
82 | static inline int apicid_to_node(int logical_apicid) | 82 | static inline int apicid_to_node(int logical_apicid) |
83 | { | 83 | { |
84 | return (0); | 84 | return apicid_2_node[hard_smp_processor_id()]; |
85 | } | 85 | } |
86 | 86 | ||
87 | static inline int cpu_present_to_apicid(int mps_cpu) | 87 | static inline int cpu_present_to_apicid(int mps_cpu) |
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) | |||
77 | 77 | ||
78 | static inline int apicid_to_node(int logical_apicid) | 78 | static inline int apicid_to_node(int logical_apicid) |
79 | { | 79 | { |
80 | #ifdef CONFIG_SMP | ||
81 | return apicid_2_node[hard_smp_processor_id()]; | ||
82 | #else | ||
80 | return 0; | 83 | return 0; |
84 | #endif | ||
81 | } | 85 | } |
82 | #endif | 86 | #endif |
83 | 87 | ||