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 <lsrao@codeaurora.org>
This commit is contained in:
Srinivas Rao L 2016-01-28 15:56:59 +05:30 committed by David Keitel
parent 5f825416fb
commit 07314e73b3

View file

@ -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);