PPC32: Properly register CPUs
PATCH 1/1 PPC32: Properly register CPUs
Hi Linus !
This patch adds proper registration of CPUs on ppc32, without this, accesses to cpufreq will oops.
Please apply,
Ben.
===== arch/ppc/kernel/setup.c 1.41 vs edited =====
arch/ppc/kernel/setup.c +11 -1
@@ -572,11 +572,21 @@ }#endif /* CONFIG_NVRAM */ +static struct cpu cpu_devices[NR_CPUS ]; +int __init ppc_init (void ) { +int i; +/* clear the progress line */ if ( ppc_md.progress ) ppc_md.progress (" " ,0xffff ); - + +/* register CPU devices */ +for (i =0 ; i <NR_CPUS ; i++) +if (cpu_possible (i)) +register_cpu (&cpu_devices[i], i,NULL ); + +/* call platform init */ if (ppc_md.init !=NULL ) { ppc_md.init (); }