arm/acpi: Parse MADT to map logical cpu to MPIDR and get cpu_possible_map
authorParth Dixit <parth.dixit@linaro.org>
Wed, 2 Mar 2016 07:35:00 +0000 (08:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 3 Mar 2016 08:05:12 +0000 (09:05 +0100)
commitb9db1e867375f4c2e2084784164760c36a7da85f
tree6ce683c9f9cc962594dca2c5419dd9dd54f84a31
parent1c9bd43019cd3fb63a6ca1e2190664613bee839f
arm/acpi: Parse MADT to map logical cpu to MPIDR and get cpu_possible_map

MADT contains the information for MPIDR which is essential for SMP
initialization, parse the GIC cpu interface structures to get the MPIDR
value and map it to cpu_logical_map(), and add enabled cpu with valid
MPIDR into cpu_possible_map.

Move BAD_MADT_ENTRY to common place, parenthesize its parameters and
drop the pointer cast.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org>
Signed-off-by: Parth Dixit <parth.dixit@linaro.org>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/arm/acpi/boot.c
xen/arch/x86/acpi/boot.c
xen/include/asm-arm/acpi.h
xen/include/xen/acpi.h