kthread: add kthread_stop_put
[linux-2.6-microblaze.git] / kernel / smpboot.c
index f47d8f3..1992b62 100644 (file)
@@ -272,8 +272,7 @@ static void smpboot_destroy_threads(struct smp_hotplug_thread *ht)
                struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu);
 
                if (tsk) {
-                       kthread_stop(tsk);
-                       put_task_struct(tsk);
+                       kthread_stop_put(tsk);
                        *per_cpu_ptr(ht->store, cpu) = NULL;
                }
        }