diff options
| author | Maulik Shah <mkshah@codeaurora.org> | 2017-04-18 20:48:44 +0530 |
|---|---|---|
| committer | Maulik Shah <mkshah@codeaurora.org> | 2017-04-21 11:27:18 +0530 |
| commit | ce47b1c984d429704ddab5c8a3534f1b45679daf (patch) | |
| tree | 8d2d2c3c397ffaafb459c8c360c383760a468a16 | |
| parent | 6ee87610acf2927de5365f456ca0e6529f5c0d1a (diff) | |
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>
| -rw-r--r-- | drivers/cpuidle/lpm-levels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/lpm-levels.c b/drivers/cpuidle/lpm-levels.c index 37535a72e066..720f8d7f910f 100644 --- a/drivers/cpuidle/lpm-levels.c +++ b/drivers/cpuidle/lpm-levels.c @@ -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; |
