stop_machine: Mark per cpu stopper enabled early
[firefly-linux-kernel-4.4.55.git] / kernel / smpboot.c
index d4abac261779e037b2396b80f5b4fe3ec6efad71..8eaed9aa9cf0c1995520605af1de8ef3b9e95485 100644 (file)
@@ -209,6 +209,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);
 }