mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user