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

Commit 6fccfe92 authored by Pracheer's avatar Pracheer Committed by Tapas Kumar Kundu
Browse files

soc: qcom: Fix for loop exit condition in msm_perf module



Fix the upper limit on the number of cores to be offlined
in try_hotplug function.

Change-Id: I8bcfddac16727b907f40bd319cf4128d49937293
Signed-off-by: default avatarPracheer <pracheer@codeaurora.org>
parent 40caf722
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -512,7 +512,8 @@ static void __ref try_hotplug(struct cpu_hp *data)
		 * If power aware offlining fails due to power cost info
		 * being unavaiable fall back to original implementation
		 */
		for (i = num_present_cpus() - 1; i >= 0; i--) {
		for (i = num_present_cpus() - 1; i >= 0 &&
						i < num_present_cpus(); i--) {
			if (!cpumask_test_cpu(i, data->cpus) ||	!cpu_online(i))
				continue;