]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - init/main.c
[MIPS] Alchemy: Console output fixup
[linux-2.6-omap-h63xx.git] / init / main.c
index f142d403534190f4588b3d7eda585112077e0607..27f97f9b46362c4fa316619fdcc8e0d29751bbd3 100644 (file)
@@ -394,14 +394,16 @@ static void noinline rest_init(void)
        kernel_thread(init, NULL, CLONE_FS | CLONE_SIGHAND);
        numa_default_policy();
        unlock_kernel();
-       preempt_enable_no_resched();
 
        /*
         * The boot idle thread must execute schedule()
         * at least one to get things moving:
         */
+       preempt_enable_no_resched();
        schedule();
+       preempt_disable();
 
+       /* Call into cpu_idle with preempt disabled */
        cpu_idle();
 }