Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5516adaa authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpu-hotplug: Fix the cpus_write_lock usage"

parents 7dcadadd 1e227724
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -867,11 +867,11 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen,
	if (!cpu_present(cpu))
		return -EINVAL;

	cpus_write_lock();

	if (!tasks_frozen && !cpu_isolated(cpu) && num_online_uniso_cpus() == 1)
		return -EBUSY;

	cpus_write_lock();

	if (trace_cpuhp_latency_enabled())
		start_time = sched_clock();