kthread/smpboot: do not park in kthread_create_on_cpu()
[deliverable/linux.git] / kernel / smpboot.c
index 13bc43d1fb227f8ee0c55a411460200a2ac3b067..4a5c6e73ecd41e7107a89b098f4eea9fefc647f1 100644 (file)
@@ -186,6 +186,11 @@ __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu)
                kfree(td);
                return PTR_ERR(tsk);
        }
+       /*
+        * Park the thread so that it could start right on the CPU
+        * when it is available.
+        */
+       kthread_park(tsk);
        get_task_struct(tsk);
        *per_cpu_ptr(ht->store, cpu) = tsk;
        if (ht->create) {
This page took 0.032767 seconds and 5 git commands to generate.