Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9341697 authored by Lorenzo Pieralisi's avatar Lorenzo Pieralisi Committed by Abhimanyu Kapur
Browse files

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.

Change-Id: I02093e3fef946979acb28d735224d01142c63c5f
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Git-commit: b8824dfe1b3fe1d4ef3d7ee78a071b8290d3b153
Git-Repo: git://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarAbhimanyu Kapur <abhimany@codeaurora.org>
parent cd0902bb
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include <linux/kallsyms.h>
#include <linux/init.h>
#include <linux/cpu.h>
#include <linux/cpuidle.h>
#include <linux/elfcore.h>
#include <linux/pm.h>
#include <linux/tick.h>
@@ -98,9 +99,11 @@ void arch_cpu_idle(void)
	 * This should do all the clock switching and wait for interrupt
	 * tricks
	 */
	if (cpuidle_idle_call()) {
		cpu_do_idle();
		local_irq_enable();
	}
}

#ifdef CONFIG_HOTPLUG_CPU
void arch_cpu_idle_dead(void)