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:
parent
5ddfb5777c
commit
c8e2fdb191
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue