lpm-levels: Select lpm for isolated cpu when sleep is disabled

Isolated cpu can enter to wfi if sleep is disabled and stay in
wfi until it wakes up and selects deeper lpm again.

Select cpu lpm for isolated cpu when sleep is disabled.

Change-Id: Id936ebaac0118d48d07e74aff7569f93b8b98b8b
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
This commit is contained in:
Maulik Shah 2017-04-18 20:48:44 +05:30
parent 6ee87610ac
commit ce47b1c984

View file

@ -690,7 +690,7 @@ static int cpu_power_select(struct cpuidle_device *dev,
if (!cpu)
return -EINVAL;
if (sleep_disabled)
if (sleep_disabled && !cpu_isolated(dev->cpu))
return 0;
idx_restrict = cpu->nlevels + 1;