X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=kernel%2Fsmpboot.c;h=4a5c6e73ecd41e7107a89b098f4eea9fefc647f1;hb=86c5bf7101991608483c93e7954b93acdc85ea57;hp=13bc43d1fb227f8ee0c55a411460200a2ac3b067;hpb=6b5e09a748ad0a0b198d0e268c7e689044bfe48a;p=cascardo%2Flinux.git diff --git a/kernel/smpboot.c b/kernel/smpboot.c index 13bc43d1fb22..4a5c6e73ecd4 100644 --- a/kernel/smpboot.c +++ b/kernel/smpboot.c @@ -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) {