Skip to content

Commit 5ede91f

Browse files
Raghavendra KakarlaExactExampl
authored andcommitted
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: Raghavendra Kakarla <rkakarla@codeaurora.org>
1 parent 22916d2 commit 5ede91f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

drivers/cpuidle/lpm-levels-legacy.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,11 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,
643643
cpumask_copy(&cpumask, cpumask_of(cpu));
644644
nextcpu = level->disable_dynamic_routing ? NULL : &cpumask;
645645

646-
if (sys_pm_ops && sys_pm_ops->enter)
647-
if ((sys_pm_ops->enter(nextcpu)))
648-
return -EBUSY;
646+
if (sys_pm_ops && sys_pm_ops->enter) {
647+
ret = sys_pm_ops->enter(nextcpu);
648+
if (ret)
649+
goto failed_set_mode;
650+
}
649651

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

0 commit comments

Comments
 (0)