diff options
author | Robert Richter <robert.richter@amd.com> | 2008-06-06 06:01:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-10 06:32:53 -0400 |
commit | 9e26d84273541a8c6c2efb705457ca8e6245fb73 (patch) | |
tree | 53e6adaf9721c482413e27c38282c15b7251c747 /arch/x86/kernel | |
parent | d44b9d17faf7bca165ce73a1acb936b65a3f0cc6 (diff) |
fix build bug in "x86: add PCI extended config space access for AMD Barcelona"
Also much less code now.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/amd_64.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/cpu.h | 5 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/setup.h | 26 | ||||
-rw-r--r-- | arch/x86/kernel/setup_64.c | 2 |
6 files changed, 7 insertions, 31 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 656b40aed647..a38d54f4ff25 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -4,10 +4,8 @@ | |||
4 | #include <asm/io.h> | 4 | #include <asm/io.h> |
5 | #include <asm/processor.h> | 5 | #include <asm/processor.h> |
6 | #include <asm/apic.h> | 6 | #include <asm/apic.h> |
7 | #include <asm/mmconfig.h> | ||
8 | 7 | ||
9 | #include <mach_apic.h> | 8 | #include <mach_apic.h> |
10 | #include "../setup.h" | ||
11 | #include "cpu.h" | 9 | #include "cpu.h" |
12 | 10 | ||
13 | /* | 11 | /* |
diff --git a/arch/x86/kernel/cpu/amd_64.c b/arch/x86/kernel/cpu/amd_64.c index 180097e99219..626fc21f027d 100644 --- a/arch/x86/kernel/cpu/amd_64.c +++ b/arch/x86/kernel/cpu/amd_64.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <asm/cacheflush.h> | 6 | #include <asm/cacheflush.h> |
7 | 7 | ||
8 | #include <mach_apic.h> | 8 | #include <mach_apic.h> |
9 | #include "cpu.h" | ||
9 | 10 | ||
10 | extern int __cpuinit get_model_name(struct cpuinfo_x86 *c); | 11 | extern int __cpuinit get_model_name(struct cpuinfo_x86 *c); |
11 | extern void __cpuinit display_cacheinfo(struct cpuinfo_x86 *c); | 12 | extern void __cpuinit display_cacheinfo(struct cpuinfo_x86 *c); |
diff --git a/arch/x86/kernel/cpu/cpu.h b/arch/x86/kernel/cpu/cpu.h index 783691b2a738..f5d5bb1b5541 100644 --- a/arch/x86/kernel/cpu/cpu.h +++ b/arch/x86/kernel/cpu/cpu.h | |||
@@ -1,3 +1,4 @@ | |||
1 | #ifdef CONFIG_X86_32 | ||
1 | 2 | ||
2 | struct cpu_model_info { | 3 | struct cpu_model_info { |
3 | int vendor; | 4 | int vendor; |
@@ -36,3 +37,7 @@ extern struct cpu_vendor_dev __x86cpuvendor_start[], __x86cpuvendor_end[]; | |||
36 | 37 | ||
37 | extern int get_model_name(struct cpuinfo_x86 *c); | 38 | extern int get_model_name(struct cpuinfo_x86 *c); |
38 | extern void display_cacheinfo(struct cpuinfo_x86 *c); | 39 | extern void display_cacheinfo(struct cpuinfo_x86 *c); |
40 | |||
41 | #endif /* CONFIG_X86_32 */ | ||
42 | |||
43 | extern void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c); | ||
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index d8f171234013..20e14dbef107 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -136,6 +136,7 @@ void __init setup_per_cpu_areas(void) | |||
136 | setup_cpumask_of_cpu(); | 136 | setup_cpumask_of_cpu(); |
137 | } | 137 | } |
138 | 138 | ||
139 | #endif | ||
139 | #define ENABLE_CF8_EXT_CFG (1ULL << 46) | 140 | #define ENABLE_CF8_EXT_CFG (1ULL << 46) |
140 | 141 | ||
141 | void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c) | 142 | void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c) |
@@ -149,4 +150,3 @@ void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c) | |||
149 | set_cpu_cap(c, X86_FEATURE_PCI_EXT_CFG); | 150 | set_cpu_cap(c, X86_FEATURE_PCI_EXT_CFG); |
150 | } | 151 | } |
151 | 152 | ||
152 | #endif | ||
diff --git a/arch/x86/kernel/setup.h b/arch/x86/kernel/setup.h deleted file mode 100644 index 66cc2c7f961d..000000000000 --- a/arch/x86/kernel/setup.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /* | ||
2 | * Internal declarations for shared x86 setup code. | ||
3 | * | ||
4 | * Copyright (c) 2008 Advanced Micro Devices, Inc. | ||
5 | * Contributed by Robert Richter <robert.richter@amd.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or | ||
8 | * modify it under the terms of version 2 of the GNU General Public | ||
9 | * License as published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
19 | * 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #ifndef _ARCH_X86_KERNEL_SETUP_H | ||
23 | |||
24 | extern void __cpuinit amd_enable_pci_ext_cfg(struct cpuinfo_x86 *c); | ||
25 | |||
26 | #endif /* _ARCH_X86_KERNEL_SETUP_H */ | ||
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index 215bd67e5b6c..25afdd80a3cf 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -73,8 +73,6 @@ | |||
73 | #include <asm/pat.h> | 73 | #include <asm/pat.h> |
74 | #include <asm/mmconfig.h> | 74 | #include <asm/mmconfig.h> |
75 | 75 | ||
76 | #include "setup.h" | ||
77 | |||
78 | #include <mach_apic.h> | 76 | #include <mach_apic.h> |
79 | #ifdef CONFIG_PARAVIRT | 77 | #ifdef CONFIG_PARAVIRT |
80 | #include <asm/paravirt.h> | 78 | #include <asm/paravirt.h> |