[MIPS] VSMP: Fix initialization ordering bug.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jul 2007 16:25:58 +0000 (18:25 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 4 Jul 2007 14:53:16 +0000 (15:53 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smp-mt.c

index b8fa7ddd78f6d76b0aae3aefc7b99966fc08db65..19b30d6f172785dd817b00742b05ec911a858053 100644 (file)
@@ -236,8 +236,6 @@ void __init plat_smp_setup(void)
        dvpe();
        dmt();
 
-       mips_mt_set_cpuoptions();
-
        /* Put MVPE's into 'configuration state' */
        set_c0_mvpcontrol(MVPCONTROL_VPC);
 
@@ -263,6 +261,8 @@ void __init plat_smp_setup(void)
 
 void __init plat_prepare_cpus(unsigned int max_cpus)
 {
+       mips_mt_set_cpuoptions();
+
        /* set up ipi interrupts */
        if (cpu_has_vint) {
                set_vi_handler(MIPS_CPU_IPI_RESCHED_IRQ, ipi_resched_dispatch);