[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>
This commit is contained in:

committed by
Paul Mackerras

parent
10b35d9978
commit
400d221274
@@ -236,9 +236,9 @@ void __init ibm440gx_l2c_setup(struct ibm44x_clocks* p)
|
||||
/* Disable L2C on rev.A, rev.B and 800MHz version of rev.C,
|
||||
enable it on all other revisions
|
||||
*/
|
||||
if (strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. A") == 0 ||
|
||||
strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. B") == 0
|
||||
|| (strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. C")
|
||||
if (strcmp(cur_cpu_spec->cpu_name, "440GX Rev. A") == 0 ||
|
||||
strcmp(cur_cpu_spec->cpu_name, "440GX Rev. B") == 0
|
||||
|| (strcmp(cur_cpu_spec->cpu_name, "440GX Rev. C")
|
||||
== 0 && p->cpu > 667000000))
|
||||
ibm440gx_l2c_disable();
|
||||
else
|
||||
|
Reference in New Issue
Block a user