From ce47b1c984d429704ddab5c8a3534f1b45679daf Mon Sep 17 00:00:00 2001 From: Maulik Shah Date: Tue, 18 Apr 2017 20:48:44 +0530 Subject: [PATCH] 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 --- drivers/cpuidle/lpm-levels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;