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: Tengfei Fan <tengfeif@codeaurora.org>
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
6f89af0466
commit
122d7168b2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user