mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
x86: enable_update_mptable should be a macro
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>
This commit is contained in:
parent
948cd52906
commit
abfe0af981
1 changed files with 2 additions and 9 deletions
|
@ -61,9 +61,11 @@ extern void get_smp_config(void);
|
||||||
#ifdef CONFIG_X86_MPPARSE
|
#ifdef CONFIG_X86_MPPARSE
|
||||||
extern void find_smp_config(void);
|
extern void find_smp_config(void);
|
||||||
extern void early_reserve_e820_mpc_new(void);
|
extern void early_reserve_e820_mpc_new(void);
|
||||||
|
extern int enable_update_mptable;
|
||||||
#else
|
#else
|
||||||
static inline void find_smp_config(void) { }
|
static inline void find_smp_config(void) { }
|
||||||
static inline void early_reserve_e820_mpc_new(void) { }
|
static inline void early_reserve_e820_mpc_new(void) { }
|
||||||
|
#define enable_update_mptable 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void __cpuinit generic_processor_info(int apicid, int version);
|
void __cpuinit generic_processor_info(int apicid, int version);
|
||||||
|
@ -87,15 +89,6 @@ static inline int acpi_probe_gsi(void)
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_ACPI */
|
#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)
|
#define PHYSID_ARRAY_SIZE BITS_TO_LONGS(MAX_APICS)
|
||||||
|
|
||||||
struct physid_mask {
|
struct physid_mask {
|
||||||
|
|
Loading…
Add table
Reference in a new issue