x86, apic: make generic_apic_probe() generally available
authorIngo Molnar <mingo@elte.hu>
Wed, 11 Feb 2009 10:27:39 +0000 (11:27 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 11 Feb 2009 10:27:39 +0000 (11:27 +0100)
Impact: build fix

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/apic.h
arch/x86/kernel/setup.c

index f4835a1be360b5090c9d0bdbd12fdaaab39909b5..fba49f66228f740f7bc328fca85ee853f23bae66 100644 (file)
        } 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
 
index 150e6d0a3b472f45046096635d8af4b57e42ee96..8fce6c7145146f86f4d05b78c39434d154b0c667 100644 (file)
@@ -936,9 +936,7 @@ void __init setup_arch(char **cmdline_p)
        map_vsyscall();
 #endif
 
-#ifdef CONFIG_X86_32
        generic_apic_probe();
-#endif
 
        early_quirks();