arm64: kernel: introduce cpu_init_idle CPU operation
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 17 Jul 2014 09:30:07 +0000 (10:30 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 18 Jan 2015 12:39:59 +0000 (12:39 +0000)
commit29b3c03e0f74df4cbd461765b5271f643fe5c1e1
tree063c6d508f8c1a066eaff9e379f6cf07dc394b07
parent89f6097555808374113d23e39b00c0d3c3d144c1
arm64: kernel: introduce cpu_init_idle CPU operation

The CPUidle subsystem on ARM64 machines requires the idle states
implementation back-end to initialize idle states parameter upon
boot. This patch adds a hook in the CPU operations structure that
should be initialized by the CPU operations back-end in order to
provide a function that initializes cpu idle states.

This patch also adds the infrastructure to arm64 kernel required
to export the CPU operations based initialization interface, so
that drivers (ie CPUidle) can use it when they are initialized
at probe time.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit d64f84f696463c58e1908510e45b0f5d450f737a)
Signed-off-by: Mark Brown <broonie@kernel.org>
Conflicts:
arch/arm64/kernel/Makefile
arch/arm/kernel/Makefile
arch/arm64/include/asm/cpu_ops.h
arch/arm64/include/asm/cpuidle.h [new file with mode: 0644]
arch/arm64/kernel/Makefile
arch/arm64/kernel/cpuidle.c [new file with mode: 0644]