[PATCH v7 4/8] arm64: kernel: introduce cpu_init_idle CPU operation
Catalin Marinas
catalin.marinas at arm.com
Mon Aug 18 07:21:06 PDT 2014
On Wed, Aug 13, 2014 at 04:52:03PM +0100, Lorenzo Pieralisi wrote:
> 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.
>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
> ---
> arch/arm64/include/asm/cpu_ops.h | 3 +++
> arch/arm64/include/asm/cpuidle.h | 13 +++++++++++++
> arch/arm64/kernel/Makefile | 1 +
> arch/arm64/kernel/cpuidle.c | 29 +++++++++++++++++++++++++++++
> 4 files changed, 46 insertions(+)
> create mode 100644 arch/arm64/include/asm/cpuidle.h
> create mode 100644 arch/arm64/kernel/cpuidle.c
Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-arm-kernel
mailing list