aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms
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
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')
-rw-r--r--arch/ppc/platforms/4xx/ebony.c2
-rw-r--r--arch/ppc/platforms/pmac_setup.c2
-rw-r--r--arch/ppc/platforms/radstone_ppc7d.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/ppc/platforms/4xx/ebony.c b/arch/ppc/platforms/4xx/ebony.c
index d6b2b1965dcb..9decb72e7aaf 100644
--- a/arch/ppc/platforms/4xx/ebony.c
+++ b/arch/ppc/platforms/4xx/ebony.c
@@ -91,7 +91,7 @@ ebony_calibrate_decr(void)
91 * on Rev. C silicon then errata forces us to 91 * on Rev. C silicon then errata forces us to
92 * use the internal clock. 92 * use the internal clock.
93 */ 93 */
94 if (strcmp(cur_cpu_spec[0]->cpu_name, "440GP Rev. B") == 0) 94 if (strcmp(cur_cpu_spec->cpu_name, "440GP Rev. B") == 0)
95 freq = EBONY_440GP_RB_SYSCLK; 95 freq = EBONY_440GP_RB_SYSCLK;
96 else 96 else
97 freq = EBONY_440GP_RC_SYSCLK; 97 freq = EBONY_440GP_RC_SYSCLK;
diff --git a/arch/ppc/platforms/pmac_setup.c b/arch/ppc/platforms/pmac_setup.c
index 1ad779ecc8fc..e6a12182bfbb 100644
--- a/arch/ppc/platforms/pmac_setup.c
+++ b/arch/ppc/platforms/pmac_setup.c
@@ -448,7 +448,7 @@ static int pmac_pm_enter(suspend_state_t state)
448 enable_kernel_fp(); 448 enable_kernel_fp();
449 449
450#ifdef CONFIG_ALTIVEC 450#ifdef CONFIG_ALTIVEC
451 if (cur_cpu_spec[0]->cpu_features & CPU_FTR_ALTIVEC) 451 if (cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC)
452 enable_kernel_altivec(); 452 enable_kernel_altivec();
453#endif /* CONFIG_ALTIVEC */ 453#endif /* CONFIG_ALTIVEC */
454 454
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