Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e786933 authored by Srinivas Rao L's avatar Srinivas Rao L
Browse files

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: default avatarSrinivas Rao L <lsrao@codeaurora.org>
parent 866b7283
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1006,10 +1006,8 @@ static int lpm_cpuidle_select(struct cpuidle_driver *drv,

	idx = cpu_power_select(dev, cluster->cpu);

	if (idx < 0) {
		local_irq_enable();
	if (idx < 0)
		return -EPERM;
	}

	trace_cpu_idle_rcuidle(idx, dev->cpu);
	return idx;