From 07314e73b37a55014b93a3c54afd0c8fc185f491 Mon Sep 17 00:00:00 2001 From: Srinivas Rao L Date: Thu, 28 Jan 2016 15:56:59 +0530 Subject: [PATCH] cpuidle: lpm-levels: Remove local_irq_enable from lpm_cpuidle_select Remove enabling of interrupts in lpm_cpuidle_select in case of no low power mode selected as it is taken care in cpuidle_idle_call. Change-Id: Id9fabe6116908b4c64bd6659d02252684db10958 Signed-off-by: Srinivas Rao L --- drivers/cpuidle/lpm-levels.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpuidle/lpm-levels.c b/drivers/cpuidle/lpm-levels.c index 9d53c3af5f5a..edd4ba9bc1b4 100644 --- a/drivers/cpuidle/lpm-levels.c +++ b/drivers/cpuidle/lpm-levels.c @@ -841,10 +841,8 @@ static int lpm_cpuidle_enter(struct cpuidle_device *dev, const struct cpumask *cpumask = get_cpu_mask(dev->cpu); struct power_params *pwr_params; - if (idx < 0) { - local_irq_enable(); + if (idx < 0) return -EPERM; - } trace_cpu_idle_rcuidle(idx, dev->cpu);