Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38b5b036 authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen
Browse files

[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: default avatarAndi Kleen <ak@suse.de>
parent f7a23328
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -88,7 +88,11 @@ static inline void clustered_apic_check(void)


static inline int apicid_to_node(int logical_apicid)
static inline int apicid_to_node(int logical_apicid)
{
{
#ifdef CONFIG_SMP
	return apicid_2_node[hard_smp_processor_id()];
	return apicid_2_node[hard_smp_processor_id()];
#else
	return 0;
#endif
}
}


/* Mapping from cpu number to logical apicid */
/* Mapping from cpu number to logical apicid */