X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=kernel%2Fsmpboot.c;h=d264f59bff56cb128edc68c5746280a2499752d5;hb=4b3bd37bd9c842f196115c5792cafeba7226d998;hp=a818cbc73e147382488cb0ea5bb5c490c6a46e15;hpb=c7d77a7980e434c3af17de19e3348157f9b9ccce;p=firefly-linux-kernel-4.4.55.git diff --git a/kernel/smpboot.c b/kernel/smpboot.c index a818cbc73e14..d264f59bff56 100644 --- a/kernel/smpboot.c +++ b/kernel/smpboot.c @@ -222,9 +222,8 @@ static void smpboot_unpark_thread(struct smp_hotplug_thread *ht, unsigned int cp { struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); - if (ht->pre_unpark) - ht->pre_unpark(cpu); - kthread_unpark(tsk); + if (!ht->selfparking) + kthread_unpark(tsk); } void smpboot_unpark_threads(unsigned int cpu)