[MIPS] SMP: Call platform methods via ops structure.
[linux-block.git] / arch / mips / mips-boards / generic / init.c
index 30f1f54cb68b5d789af644b8d58499df8987c3ed..1695dca5506bbe7e008221ca400836ff97446703 100644 (file)
@@ -250,6 +250,8 @@ void __init mips_ejtag_setup(void)
        flush_icache_range((unsigned long)base, (unsigned long)base + 0x80);
 }
 
+extern struct plat_smp_ops msmtc_smp_ops;
+
 void __init prom_init(void)
 {
        prom_argc = fw_arg0;
@@ -416,4 +418,10 @@ void __init prom_init(void)
 #ifdef CONFIG_SERIAL_8250_CONSOLE
        console_config();
 #endif
+#ifdef CONFIG_MIPS_MT_SMP
+       register_smp_ops(&vsmp_smp_ops);
+#endif
+#ifdef CONFIG_MIPS_MT_SMTC
+       register_smp_ops(&msmtc_smp_ops);
+#endif
 }