aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r--arch/powerpc/kernel/setup_32.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 066e65c59b58..c1a27626a940 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -111,7 +111,7 @@ notrace unsigned long __init early_init(unsigned long dt_ptr)
111 * This is called very early on the boot process, after a minimal 111 * This is called very early on the boot process, after a minimal
112 * MMU environment has been set up but before MMU_init is called. 112 * MMU environment has been set up but before MMU_init is called.
113 */ 113 */
114notrace void __init machine_init(unsigned long dt_ptr, unsigned long phys) 114notrace void __init machine_init(unsigned long dt_ptr)
115{ 115{
116 /* Enable early debugging if any specified (see udbg.h) */ 116 /* Enable early debugging if any specified (see udbg.h) */
117 udbg_early_init(); 117 udbg_early_init();
@@ -209,23 +209,12 @@ EXPORT_SYMBOL(nvram_sync);
209 209
210#endif /* CONFIG_NVRAM */ 210#endif /* CONFIG_NVRAM */
211 211
212static DEFINE_PER_CPU(struct cpu, cpu_devices);
213
214int __init ppc_init(void) 212int __init ppc_init(void)
215{ 213{
216 int cpu;
217
218 /* clear the progress line */ 214 /* clear the progress line */
219 if (ppc_md.progress) 215 if (ppc_md.progress)
220 ppc_md.progress(" ", 0xffff); 216 ppc_md.progress(" ", 0xffff);
221 217
222 /* register CPU devices */
223 for_each_possible_cpu(cpu) {
224 struct cpu *c = &per_cpu(cpu_devices, cpu);
225 c->hotpluggable = 1;
226 register_cpu(c, cpu);
227 }
228
229 /* call platform init */ 218 /* call platform init */
230 if (ppc_md.init != NULL) { 219 if (ppc_md.init != NULL) {
231 ppc_md.init(); 220 ppc_md.init();