]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
fix build bug in "x86: add PCI extended config space access for AMD Barcelona"
authorIngo Molnar <mingo@elte.hu>
Mon, 2 Jun 2008 10:21:36 +0000 (12:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 2 Jun 2008 10:26:21 +0000 (12:26 +0200)
arch/x86/kernel/cpu/amd.c
include/asm-x86/mmconfig.h

index 99221f9834e4249d7aee6ab3b9f65d5164d3a05f..656b40aed64748b0c530a56cc7b5f5ba505e7724 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/apic.h>
+#include <asm/mmconfig.h>
 
 #include <mach_apic.h>
 #include "../setup.h"
index 46d6bb135df40e69d1012900a925c4c037b54e26..691798fbee10f9eb29d87e68b242ab852a2b5420 100644 (file)
@@ -9,6 +9,10 @@ static inline void fam10h_check_enable_mmcfg(void) { }
 static inline void check_enable_amd_mmconf_dmi(void) { }
 #endif
 
+#if defined(CONFIG_SMP) && defined(CONFIG_X86_64)
 extern void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c);
+#else
+static inline void amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c) { }
+#endif
 
 #endif