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

Commit e5414a42 authored by Patrick Cain's avatar Patrick Cain Committed by Rishabh Bhatnagar
Browse files

arm64: Call idle notifiers in CPU idle



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

CRs-Fixed: 677525
Change-Id: Iabd6f617d6835688cf8b482ac1321e5c1deafffd
Signed-off-by: default avatarPatrick Cain <pcain@codeaurora.org>
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent dd81d8a6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -88,6 +88,16 @@ void arch_cpu_idle(void)
	trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id());
}

void arch_cpu_idle_enter(void)
{
	idle_notifier_call_chain(IDLE_START);
}

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

#ifdef CONFIG_HOTPLUG_CPU
void arch_cpu_idle_dead(void)
{