From: Lorenzo Pieralisi Date: Wed, 17 Jul 2013 09:12:24 +0000 (+0100) Subject: arm64: kernel: add CPU idle call X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b8824dfe1b3fe1d4ef3d7ee78a071b8290d3b153;p=linux-beck.git arm64: kernel: add CPU idle call When CPU idle is enabled, the architectural idle call should go through the idle subsystem to allow CPUs to enter idle states defined by the platform CPU idle back-end operations. This patch, mirroring other archs behaviour, adds the CPU idle call to the architectural arch_cpu_idle implementation for arm64. Acked-by: Daniel Lezcano Signed-off-by: Lorenzo Pieralisi --- diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index de17c89985db..50491ec4de34 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