kthread: Don't allocate kthread_struct for init and umh
[sfrench/cifs-2.6.git] / init / main.c
index 98182c3c2c4b3eedd0eda488107b656ad0f030e3..39baac0211c6da3b40335b252c59fbb45bd14c0a 100644 (file)
@@ -688,7 +688,7 @@ noinline void __ref rest_init(void)
         * the init task will end up wanting to create kthreads, which, if
         * we schedule it before we create kthreadd, will OOPS.
         */
-       pid = kernel_thread(kernel_init, NULL, CLONE_FS);
+       pid = user_mode_thread(kernel_init, NULL, CLONE_FS);
        /*
         * Pin init on the boot CPU. Task migration is not properly working
         * until sched_init_smp() has been run. It will set the allowed