sched/hotplug: Consolidate task migration on CPU unplug
[sfrench/cifs-2.6.git] / kernel / cpu.c
index 6ff2578ecf17d4691722762553c88f7d68a9bdd1..fa535eaa48265e16e6051beb48755fd9339ed266 100644 (file)
@@ -1602,7 +1602,7 @@ static struct cpuhp_step cpuhp_hp_states[] = {
                .name                   = "ap:online",
        },
        /*
-        * Handled on controll processor until the plugged processor manages
+        * Handled on control processor until the plugged processor manages
         * this itself.
         */
        [CPUHP_TEARDOWN_CPU] = {
@@ -1611,6 +1611,13 @@ static struct cpuhp_step cpuhp_hp_states[] = {
                .teardown.single        = takedown_cpu,
                .cant_stop              = true,
        },
+
+       [CPUHP_AP_SCHED_WAIT_EMPTY] = {
+               .name                   = "sched:waitempty",
+               .startup.single         = NULL,
+               .teardown.single        = sched_cpu_wait_empty,
+       },
+
        /* Handle smpboot threads park/unpark */
        [CPUHP_AP_SMPBOOT_THREADS] = {
                .name                   = "smpboot/threads:online",