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: Srinivas Rao L <lsrao@codeaurora.org>
This commit is contained in:
Srinivas Rao L 2017-10-13 23:41:58 +05:30 committed by Timi
parent 5ddfb5777c
commit c8e2fdb191

View file

@ -359,6 +359,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;