aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/cputable.c
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2006-05-19 00:24:18 -0400
committerPaul Mackerras <paulus@samba.org>2006-05-19 00:24:18 -0400
commitb26f100d89c87060b561c3108582b7cb81521df8 (patch)
tree57e566bb4f1411e059e59b0f43bc9544e15616e8 /arch/powerpc/kernel/cputable.c
parent4240545661fc0ac25122f166e96633527150300c (diff)
[PATCH] powerpc: remove do-nothing cpu setup routines
Removed the do-nothing routines __setup_cpu_power3 and __setup_cpu_power4 and replaced them with a null pointer check in the caller. Also removed the Cell processor specific routine __setup_cpu_be which improperly accessed the hypervisor page size configuration at SPR HID6. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/cputable.c')
-rw-r--r--arch/powerpc/kernel/cputable.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c
index 3f7182db9ed5..0c487ee4d483 100644
--- a/arch/powerpc/kernel/cputable.c
+++ b/arch/powerpc/kernel/cputable.c
@@ -30,11 +30,7 @@ EXPORT_SYMBOL(cur_cpu_spec);
30 * part of the cputable though. That has to be fixed for both ppc32 30 * part of the cputable though. That has to be fixed for both ppc32
31 * and ppc64 31 * and ppc64
32 */ 32 */
33#ifdef CONFIG_PPC64 33#ifdef CONFIG_PPC32
34extern void __setup_cpu_power3(unsigned long offset, struct cpu_spec* spec);
35extern void __setup_cpu_power4(unsigned long offset, struct cpu_spec* spec);
36extern void __setup_cpu_be(unsigned long offset, struct cpu_spec* spec);
37#else
38extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec); 34extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
39extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec); 35extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
40extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec); 36extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
@@ -82,7 +78,6 @@ struct cpu_spec cpu_specs[] = {
82 .icache_bsize = 128, 78 .icache_bsize = 128,
83 .dcache_bsize = 128, 79 .dcache_bsize = 128,
84 .num_pmcs = 8, 80 .num_pmcs = 8,
85 .cpu_setup = __setup_cpu_power3,
86 .oprofile_cpu_type = "ppc64/power3", 81 .oprofile_cpu_type = "ppc64/power3",
87 .oprofile_type = PPC_OPROFILE_RS64, 82 .oprofile_type = PPC_OPROFILE_RS64,
88 .platform = "power3", 83 .platform = "power3",
@@ -96,7 +91,6 @@ struct cpu_spec cpu_specs[] = {
96 .icache_bsize = 128, 91 .icache_bsize = 128,
97 .dcache_bsize = 128, 92 .dcache_bsize = 128,
98 .num_pmcs = 8, 93 .num_pmcs = 8,
99 .cpu_setup = __setup_cpu_power3,
100 .oprofile_cpu_type = "ppc64/power3", 94 .oprofile_cpu_type = "ppc64/power3",
101 .oprofile_type = PPC_OPROFILE_RS64, 95 .oprofile_type = PPC_OPROFILE_RS64,
102 .platform = "power3", 96 .platform = "power3",
@@ -110,7 +104,6 @@ struct cpu_spec cpu_specs[] = {
110 .icache_bsize = 128, 104 .icache_bsize = 128,
111 .dcache_bsize = 128, 105 .dcache_bsize = 128,
112 .num_pmcs = 8, 106 .num_pmcs = 8,
113 .cpu_setup = __setup_cpu_power3,
114 .oprofile_cpu_type = "ppc64/rs64", 107 .oprofile_cpu_type = "ppc64/rs64",
115 .oprofile_type = PPC_OPROFILE_RS64, 108 .oprofile_type = PPC_OPROFILE_RS64,
116 .platform = "rs64", 109 .platform = "rs64",
@@ -124,7 +117,6 @@ struct cpu_spec cpu_specs[] = {
124 .icache_bsize = 128, 117 .icache_bsize = 128,
125 .dcache_bsize = 128, 118 .dcache_bsize = 128,
126 .num_pmcs = 8, 119 .num_pmcs = 8,
127 .cpu_setup = __setup_cpu_power3,
128 .oprofile_cpu_type = "ppc64/rs64", 120 .oprofile_cpu_type = "ppc64/rs64",
129 .oprofile_type = PPC_OPROFILE_RS64, 121 .oprofile_type = PPC_OPROFILE_RS64,
130 .platform = "rs64", 122 .platform = "rs64",
@@ -138,7 +130,6 @@ struct cpu_spec cpu_specs[] = {
138 .icache_bsize = 128, 130 .icache_bsize = 128,
139 .dcache_bsize = 128, 131 .dcache_bsize = 128,
140 .num_pmcs = 8, 132 .num_pmcs = 8,
141 .cpu_setup = __setup_cpu_power3,
142 .oprofile_cpu_type = "ppc64/rs64", 133 .oprofile_cpu_type = "ppc64/rs64",
143 .oprofile_type = PPC_OPROFILE_RS64, 134 .oprofile_type = PPC_OPROFILE_RS64,
144 .platform = "rs64", 135 .platform = "rs64",
@@ -152,7 +143,6 @@ struct cpu_spec cpu_specs[] = {
152 .icache_bsize = 128, 143 .icache_bsize = 128,
153 .dcache_bsize = 128, 144 .dcache_bsize = 128,
154 .num_pmcs = 8, 145 .num_pmcs = 8,
155 .cpu_setup = __setup_cpu_power3,
156 .oprofile_cpu_type = "ppc64/rs64", 146 .oprofile_cpu_type = "ppc64/rs64",
157 .oprofile_type = PPC_OPROFILE_RS64, 147 .oprofile_type = PPC_OPROFILE_RS64,
158 .platform = "rs64", 148 .platform = "rs64",
@@ -166,7 +156,6 @@ struct cpu_spec cpu_specs[] = {
166 .icache_bsize = 128, 156 .icache_bsize = 128,
167 .dcache_bsize = 128, 157 .dcache_bsize = 128,
168 .num_pmcs = 8, 158 .num_pmcs = 8,
169 .cpu_setup = __setup_cpu_power4,
170 .oprofile_cpu_type = "ppc64/power4", 159 .oprofile_cpu_type = "ppc64/power4",
171 .oprofile_type = PPC_OPROFILE_POWER4, 160 .oprofile_type = PPC_OPROFILE_POWER4,
172 .platform = "power4", 161 .platform = "power4",
@@ -180,7 +169,6 @@ struct cpu_spec cpu_specs[] = {
180 .icache_bsize = 128, 169 .icache_bsize = 128,
181 .dcache_bsize = 128, 170 .dcache_bsize = 128,
182 .num_pmcs = 8, 171 .num_pmcs = 8,
183 .cpu_setup = __setup_cpu_power4,
184 .oprofile_cpu_type = "ppc64/power4", 172 .oprofile_cpu_type = "ppc64/power4",
185 .oprofile_type = PPC_OPROFILE_POWER4, 173 .oprofile_type = PPC_OPROFILE_POWER4,
186 .platform = "power4", 174 .platform = "power4",
@@ -246,7 +234,6 @@ struct cpu_spec cpu_specs[] = {
246 .icache_bsize = 128, 234 .icache_bsize = 128,
247 .dcache_bsize = 128, 235 .dcache_bsize = 128,
248 .num_pmcs = 6, 236 .num_pmcs = 6,
249 .cpu_setup = __setup_cpu_power4,
250 .oprofile_cpu_type = "ppc64/power5", 237 .oprofile_cpu_type = "ppc64/power5",
251 .oprofile_type = PPC_OPROFILE_POWER4, 238 .oprofile_type = PPC_OPROFILE_POWER4,
252 .platform = "power5", 239 .platform = "power5",
@@ -260,7 +247,6 @@ struct cpu_spec cpu_specs[] = {
260 .icache_bsize = 128, 247 .icache_bsize = 128,
261 .dcache_bsize = 128, 248 .dcache_bsize = 128,
262 .num_pmcs = 6, 249 .num_pmcs = 6,
263 .cpu_setup = __setup_cpu_power4,
264 .oprofile_cpu_type = "ppc64/power5+", 250 .oprofile_cpu_type = "ppc64/power5+",
265 .oprofile_type = PPC_OPROFILE_POWER4, 251 .oprofile_type = PPC_OPROFILE_POWER4,
266 .platform = "power5+", 252 .platform = "power5+",
@@ -274,7 +260,6 @@ struct cpu_spec cpu_specs[] = {
274 .icache_bsize = 128, 260 .icache_bsize = 128,
275 .dcache_bsize = 128, 261 .dcache_bsize = 128,
276 .num_pmcs = 6, 262 .num_pmcs = 6,
277 .cpu_setup = __setup_cpu_power4,
278 .oprofile_cpu_type = "ppc64/power6", 263 .oprofile_cpu_type = "ppc64/power6",
279 .oprofile_type = PPC_OPROFILE_POWER4, 264 .oprofile_type = PPC_OPROFILE_POWER4,
280 .platform = "power6", 265 .platform = "power6",
@@ -289,7 +274,6 @@ struct cpu_spec cpu_specs[] = {
289 PPC_FEATURE_SMT, 274 PPC_FEATURE_SMT,
290 .icache_bsize = 128, 275 .icache_bsize = 128,
291 .dcache_bsize = 128, 276 .dcache_bsize = 128,
292 .cpu_setup = __setup_cpu_be,
293 .platform = "ppc-cell-be", 277 .platform = "ppc-cell-be",
294 }, 278 },
295 { /* default match */ 279 { /* default match */
@@ -301,7 +285,6 @@ struct cpu_spec cpu_specs[] = {
301 .icache_bsize = 128, 285 .icache_bsize = 128,
302 .dcache_bsize = 128, 286 .dcache_bsize = 128,
303 .num_pmcs = 6, 287 .num_pmcs = 6,
304 .cpu_setup = __setup_cpu_power4,
305 .platform = "power4", 288 .platform = "power4",
306 } 289 }
307#endif /* CONFIG_PPC64 */ 290#endif /* CONFIG_PPC64 */