projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a2332
)
[PATCH] i386: Fix compilation with UP genericarch
author
Andi Kleen
<ak@suse.de>
Tue, 28 Nov 2006 19:12:59 +0000
(20:12 +0100)
committer
Andi Kleen
<andi@basil.nowhere.org>
Tue, 28 Nov 2006 19:12:59 +0000
(20:12 +0100)
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 <ak@suse.de>
include/asm-i386/mach-summit/mach_apic.h
patch
|
blob
|
history
diff --git
a/include/asm-i386/mach-summit/mach_apic.h
b/include/asm-i386/mach-summit/mach_apic.h
index ef0671e5d5c549f244daa69be31acb46583b36ca..43e5bd8f4a196d32db7460afe927e1a83f08ce72 100644
(file)
--- 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(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
}
/* Mapping from cpu number to logical apicid */