diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index de17c89985dbe6c69aecbb8248155f439fc41c11..50491ec4de34a5f291a04ed5cde3b3b47220bc66 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -98,8 +99,10 @@ void arch_cpu_idle(void) * This should do all the clock switching and wait for interrupt * tricks */ - cpu_do_idle(); - local_irq_enable(); + if (cpuidle_idle_call()) { + cpu_do_idle(); + local_irq_enable(); + } } #ifdef CONFIG_HOTPLUG_CPU