]> git.baikalelectronics.ru Git - kernel.git/commit
ARM64: kernel: unify ACPI and DT cpus initialization
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 13 May 2015 13:12:47 +0000 (14:12 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 19 May 2015 15:09:29 +0000 (16:09 +0100)
commita78fce04e89f67875157de4af5659ffd7b233e73
treebb22a64d655d11cac8135fb3852d2b28c63531e5
parent81839c0298a96a271ddc980df739d2c481de9db0
ARM64: kernel: unify ACPI and DT cpus initialization

The code that initializes cpus on arm64 is currently split in two
different code paths that carry out DT and ACPI cpus initialization.

Most of the code executing SMP initialization is common and should
be merged to reduce discrepancies between ACPI and DT initialization
and to have code initializing cpus in a single common place in the
kernel.

This patch refactors arm64 SMP cpus initialization code to merge
ACPI and DT boot paths in a common file and to create sanity
checks that can be reused by both boot methods.

Current code assumes PSCI is the only available boot method
when arm64 boots with ACPI; this can be easily extended if/when
the ACPI parking protocol is merged into the kernel.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Tested-by: Mark Rutland <mark.rutland@arm.com> [DT]
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/acpi.h
arch/arm64/include/asm/cpu_ops.h
arch/arm64/include/asm/smp.h
arch/arm64/kernel/acpi.c
arch/arm64/kernel/cpu_ops.c
arch/arm64/kernel/setup.c
arch/arm64/kernel/smp.c