aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r--arch/x86/kernel/setup_64.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index d8a9ee752fb..2f5c488aad0 100644
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -289,6 +289,18 @@ static void __init parse_setup_data(void)
289 } 289 }
290} 290}
291 291
292#ifdef CONFIG_PCI_MMCONFIG
293extern void __cpuinit fam10h_check_enable_mmcfg(void);
294extern void __init check_enable_amd_mmconf_dmi(void);
295#else
296void __cpuinit fam10h_check_enable_mmcfg(void)
297{
298}
299void __init check_enable_amd_mmconf_dmi(void)
300{
301}
302#endif
303
292/* 304/*
293 * setup_arch - architecture-specific boot-time initializations 305 * setup_arch - architecture-specific boot-time initializations
294 * 306 *
@@ -510,6 +522,9 @@ void __init setup_arch(char **cmdline_p)
510 conswitchp = &dummy_con; 522 conswitchp = &dummy_con;
511#endif 523#endif
512#endif 524#endif
525
526 /* do this before identify_cpu for boot cpu */
527 check_enable_amd_mmconf_dmi();
513} 528}
514 529
515static int __cpuinit get_model_name(struct cpuinfo_x86 *c) 530static int __cpuinit get_model_name(struct cpuinfo_x86 *c)
@@ -697,14 +712,6 @@ static void __cpuinit early_init_amd(struct cpuinfo_x86 *c)
697 set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); 712 set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC);
698} 713}
699 714
700#ifdef CONFIG_PCI_MMCONFIG
701extern void __cpuinit fam10h_check_enable_mmcfg(void);
702#else
703void __cpuinit fam10h_check_enable_mmcfg(void)
704{
705}
706#endif
707
708static void __cpuinit init_amd(struct cpuinfo_x86 *c) 715static void __cpuinit init_amd(struct cpuinfo_x86 *c)
709{ 716{
710 unsigned level; 717 unsigned level;