Commit ea0f079e authored by danile71's avatar danile71 Committed by Dyneteve

Revert "cpu/hotplug: Handle unbalanced hotplug enable/disable"

This reverts commit 0b3a3245.
parent 95cd3f43
......@@ -154,17 +154,10 @@ void cpu_hotplug_disable(void)
cpu_maps_update_done();
}
static void __cpu_hotplug_enable(void)
{
if (WARN_ONCE(!cpu_hotplug_disabled, "Unbalanced cpu hotplug enable\n"))
return;
cpu_hotplug_disabled--;
}
void cpu_hotplug_enable(void)
{
cpu_maps_update_begin();
__cpu_hotplug_enable();
WARN_ON(--cpu_hotplug_disabled < 0);
cpu_maps_update_done();
}
......@@ -561,7 +554,7 @@ void __ref enable_nonboot_cpus(void)
/* Allow everyone to use the CPU hotplug again */
cpu_maps_update_begin();
__cpu_hotplug_enable();
WARN_ON(--cpu_hotplug_disabled < 0);
if (cpumask_empty(frozen_cpus))
goto out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment