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 f4835a1..fba49f6 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 150e6d0..8fce6c7 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();