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

Commit 57867645 authored by Rohit Gupta's avatar Rohit Gupta Committed by Tapas Kumar Kundu
Browse files

soc: qcom: msm_performance: Maintain correct CPU offline status



As per the current code, if any other entity decides to offline a
CPU and the module disallows it from coming up to meet the current
request, when cluster control is released the CPU in question might
be left offline since the module only plugs back in cores which it
itself offlined. Hence it is crucial to maintain a correct status of
offlined cores to be brought back up online on control release request.

This change identifies the CPU that module prevents from being onlined
so that it is restored back when cluster control is released.

Change-Id: I87831eca879d1cf7d33f88a881e0427641e39bd6
Signed-off-by: default avatarRohit Gupta <rohgup@codeaurora.org>
parent 577e4cd5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -524,6 +524,7 @@ static int __ref msm_performance_cpu_callback(struct notifier_block *nfb,
		if (i_hp->max_cpu_request <=
					num_online_managed(i_hp->cpus)) {
			pr_debug("msm_perf: Prevent CPU%d onlining\n", cpu);
			cpumask_set_cpu(cpu, i_hp->offlined_cpus);
			return NOTIFY_BAD;
		}
		cpumask_clear_cpu(cpu, i_hp->offlined_cpus);