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

Commit 63d9cd18 authored by Raghavendra Kakarla's avatar Raghavendra Kakarla Committed by Gerrit - the friendly Code Review server
Browse files

cpuidle: lpm-levels: select default level for cluster lpms



Select default level for cluster lpms when there are pending
rpm requests.

Change-Id: I67019ff616e60b86a609856ad2bfe0ca9aa2ff8c
Signed-off-by: default avatarRaghavendra Kakarla <rkakarla@codeaurora.org>
parent 97e676e1
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -643,9 +643,11 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,
		cpumask_copy(&cpumask, cpumask_of(cpu));
		nextcpu = level->disable_dynamic_routing ? NULL : &cpumask;

		if (sys_pm_ops && sys_pm_ops->enter)
			if ((sys_pm_ops->enter(nextcpu)))
				return -EBUSY;
		if (sys_pm_ops && sys_pm_ops->enter) {
			ret = sys_pm_ops->enter(nextcpu);
			if (ret)
				goto failed_set_mode;
		}

		if (cluster->no_saw_devices && !use_psci)
			msm_spm_set_rpm_hs(true);