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

Commit 122d7168 authored by Tengfei Fan's avatar Tengfei Fan Committed by Gerrit - the friendly Code Review server
Browse files

arm: Call idle notifiers in CPU idle



When CPU idle is enabled, the idle cal should also notifiy the
idle_notifier_call_chain of the change in status. Otherwise
some processes will think the CPU is always active.

Change-Id: I2fdfcae070d8f71b477adcb511a225f4eb8658f8
Signed-off-by: default avatarTengfei Fan <tengfeif@codeaurora.org>
parent 6f89af04
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ void arch_cpu_idle_prepare(void)

void arch_cpu_idle_enter(void)
{
	idle_notifier_call_chain(IDLE_START);
	ledtrig_cpu(CPU_LED_IDLE_START);
#ifdef CONFIG_PL310_ERRATA_769419
	wmb();
@@ -90,6 +91,7 @@ void arch_cpu_idle_enter(void)

void arch_cpu_idle_exit(void)
{
	idle_notifier_call_chain(IDLE_END);
	ledtrig_cpu(CPU_LED_IDLE_END);
}