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

Commit f2a21e79 authored by Srinivas Rao L's avatar Srinivas Rao L
Browse files

lpm_levels: Return true for CPU WFI mode allow check



As it's a general understanding across all architectures to have
a WFI (or equalivalent) mode always present and never disabled
for cpuidle, return true for CPU WFI mode allow check.

Change-Id: Ic55571488f845e4aaf997faaac3b2e0f22368d4e
Signed-off-by: default avatarSrinivas Rao L <lsrao@codeaurora.org>
parent cc8c86a2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -410,6 +410,9 @@ bool lpm_cpu_mode_allow(unsigned int cpu,
{
	struct lpm_level_avail *avail = cpu_level_available[cpu];

	if (lpm_pdev && !index)
		return 1;

	if (!lpm_pdev || !avail)
		return !from_idle;