Skip to content

Commit

Permalink
[PATCH] i386: Fix compilation with UP genericarch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Nov 28, 2006
1 parent f7a2332 commit 38b5b03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/asm-i386/mach-summit/mach_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 38b5b03

Please sign in to comment.