commit 38b5b036b91248be8033d42dd0778b1c75c5af58
tree fe9ddec43da3f30ff1ec4ff6609375e9d18c98de
parent f7a23328a738b45124400d85eaf78a76939da726
author Andi Kleen <[EMAIL PROTECTED]> 1164741179 +0100
committer Andi Kleen <[EMAIL PROTECTED]> 1164741179 +0100

[PATCH] i386: Fix compilation with UP genericarch

Fix

arch/i386/mach-generic/built-in.o: In function `apicid_to_node':
summit.c:(.text+0x2f): undefined reference to `apicid_2_node'

with CONFIG_GENERICH_ARCH and !CONFIG_SMP
Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>

 include/asm-i386/mach-summit/mach_apic.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/asm-i386/mach-summit/mach_apic.h 
b/include/asm-i386/mach-summit/mach_apic.h
index ef0671e..43e5bd8 100644
--- a/include/asm-i386/mach-summit/mach_apic.h
+++ b/include/asm-i386/mach-summit/mach_apic.h
@@ -88,7 +88,11 @@ static inline void clustered_apic_check(
 
 static inline int apicid_to_node(int logical_apicid)
 {
+#ifdef CONFIG_SMP
        return apicid_2_node[hard_smp_processor_id()];
+#else
+       return 0;
+#endif
 }
 
 /* Mapping from cpu number to logical apicid */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to