Revert "ANDROID: cpu/hotplug: protect _cpu_down against partial HP"

This reverts commit 1734af6299.

CPU Pause causes major merge conflicts with the 5.11 scheduler changes
(migrate-disable specifically), so lets revert Pause temporarily as it
is not needed urgently in android-mainline.

Signed-off-by: Quentin Perret <qperret@google.com>
Change-Id: If72719521011ece234d0b176e91709d4f4c6f17b
This commit is contained in:
Quentin Perret
2020-12-15 17:55:28 +00:00
parent c7f998a0cd
commit 6078e88d1a
+1 -1
View File
@@ -1000,7 +1000,7 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen,
struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, cpu);
int prev_state, ret = 0;
if (num_active_cpus() == 1)
if (num_online_cpus() == 1)
return -EBUSY;
if (!cpu_present(cpu))