aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms/radstone_ppc7d.c
diff options
context:
space:
mode:
authorKumar Gala <galak@freescale.com>2005-09-27 16:13:12 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-28 01:42:54 -0400
commit400d221274426958f1e1c7081a247bea9cede696 (patch)
treedb0907bc14504d827b06b45004152b6610387b40 /arch/ppc/platforms/radstone_ppc7d.c
parent10b35d9978ac35556aec0d2642055742d8941488 (diff)
[PATCH] ppc32: make cur_cpu_spec a single pointer instead of an array
Changed ppc32 so that cur_cpu_spec is just a single pointer for all CPUs. Additionally, made call_setup_cpu check to see if the cpu_setup pointer is NULL or not before calling the function. This lets remove the dummy cpu_setup calls that just return. Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/platforms/radstone_ppc7d.c')
-rw-r--r--arch/ppc/platforms/radstone_ppc7d.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/ppc/platforms/radstone_ppc7d.c b/arch/ppc/platforms/radstone_ppc7d.c
index c30607a972d8..06ec30f7e2f4 100644
--- a/arch/ppc/platforms/radstone_ppc7d.c
+++ b/arch/ppc/platforms/radstone_ppc7d.c
@@ -1185,18 +1185,18 @@ static void __init ppc7d_setup_arch(void)
1185 ROOT_DEV = Root_HDA1; 1185 ROOT_DEV = Root_HDA1;
1186#endif 1186#endif
1187 1187
1188 if ((cur_cpu_spec[0]->cpu_features & CPU_FTR_SPEC7450) || 1188 if ((cur_cpu_spec->cpu_features & CPU_FTR_SPEC7450) ||
1189 (cur_cpu_spec[0]->cpu_features & CPU_FTR_L3CR)) 1189 (cur_cpu_spec->cpu_features & CPU_FTR_L3CR))
1190 /* 745x is different. We only want to pass along enable. */ 1190 /* 745x is different. We only want to pass along enable. */
1191 _set_L2CR(L2CR_L2E); 1191 _set_L2CR(L2CR_L2E);
1192 else if (cur_cpu_spec[0]->cpu_features & CPU_FTR_L2CR) 1192 else if (cur_cpu_spec->cpu_features & CPU_FTR_L2CR)
1193 /* All modules have 1MB of L2. We also assume that an 1193 /* All modules have 1MB of L2. We also assume that an
1194 * L2 divisor of 3 will work. 1194 * L2 divisor of 3 will work.
1195 */ 1195 */
1196 _set_L2CR(L2CR_L2E | L2CR_L2SIZ_1MB | L2CR_L2CLK_DIV3 1196 _set_L2CR(L2CR_L2E | L2CR_L2SIZ_1MB | L2CR_L2CLK_DIV3
1197 | L2CR_L2RAM_PIPE | L2CR_L2OH_1_0 | L2CR_L2DF); 1197 | L2CR_L2RAM_PIPE | L2CR_L2OH_1_0 | L2CR_L2DF);
1198 1198
1199 if (cur_cpu_spec[0]->cpu_features & CPU_FTR_L3CR) 1199 if (cur_cpu_spec->cpu_features & CPU_FTR_L3CR)
1200 /* No L3 cache */ 1200 /* No L3 cache */
1201 _set_L3CR(0); 1201 _set_L3CR(0);
1202 1202