From: Ingo Molnar Date: Wed, 11 Feb 2009 10:27:39 +0000 (+0100) Subject: x86, apic: make generic_apic_probe() generally available X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=160d8dac12932ad6eb4a359b66521e2e3282ea7d;p=openwrt%2Fstaging%2Fblogic.git x86, apic: make generic_apic_probe() generally available Impact: build fix Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index f4835a1be360..fba49f66228f 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -33,7 +33,13 @@ } while (0) +#if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86_32) extern void generic_apic_probe(void); +#else +static inline void generic_apic_probe(void) +{ +} +#endif #ifdef CONFIG_X86_LOCAL_APIC diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 150e6d0a3b47..8fce6c714514 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -936,9 +936,7 @@ void __init setup_arch(char **cmdline_p) map_vsyscall(); #endif -#ifdef CONFIG_X86_32 generic_apic_probe(); -#endif early_quirks();