ANDROID: arm64: Call idle notifiers in CPU idle

When CPU idle is enabled, the idle call should also notify 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: Patrick Cain <pcain@codeaurora.org>
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Signed-off-by: Liang Chen <cl@rock-chips.com>
(cherry picked from https://android.googlesource.com/kernel/msm
 commit e7f65ab439125bdc29a7a0ca7345ff746d014119)
This commit is contained in:
Patrick Cain
2014-06-13 15:18:58 -07:00
committed by Tao Huang
parent d70f124dea
commit 18a67d42ad

View File

@@ -90,6 +90,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)
{