]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86: enable_update_mptable should be a macro
authorYinghai Lu <yinghai@kernel.org>
Wed, 20 May 2009 07:37:40 +0000 (00:37 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 27 May 2009 23:59:05 +0000 (01:59 +0200)
instead of declaring one variant as an inline function...
because other case is a variable

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4A13B344.7030307@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/mpspec.h

index 3dcbaaaa363e7355cb3dbb65ca36efd4313daf08..e2a1bb6d71ea832f6a6dbb3fc9ad7b58c7c9e6c4 100644 (file)
@@ -61,9 +61,11 @@ extern void get_smp_config(void);
 #ifdef CONFIG_X86_MPPARSE
 extern void find_smp_config(void);
 extern void early_reserve_e820_mpc_new(void);
+extern int enable_update_mptable;
 #else
 static inline void find_smp_config(void) { }
 static inline void early_reserve_e820_mpc_new(void) { }
+#define enable_update_mptable 0
 #endif
 
 void __cpuinit generic_processor_info(int apicid, int version);
@@ -87,15 +89,6 @@ static inline int acpi_probe_gsi(void)
 }
 #endif /* CONFIG_ACPI */
 
-#ifdef CONFIG_X86_MPPARSE
-extern int enable_update_mptable;
-#else
-static inline int enable_update_mptable(void)
-{
-       return 0;
-}
-#endif
-
 #define PHYSID_ARRAY_SIZE      BITS_TO_LONGS(MAX_APICS)
 
 struct physid_mask {