xen/arm: Dissociate logical and hardware CPU ID
authorJulien Grall <julien.grall@linaro.org>
Thu, 26 Sep 2013 11:09:40 +0000 (12:09 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 26 Sep 2013 14:44:58 +0000 (15:44 +0100)
commitff9b41bb347b08114dd89cdc8e45bfc1d1b12511
tree54b381b51d24a8303c3b129542816e5f75ffb1e2
parenta22a8e48eee4d1157eeef2b9c1b81ef9124dda4e
xen/arm: Dissociate logical and hardware CPU ID

Introduce cpu_logical_map to associate a logical CPU ID to an hardware CPU ID.
This map will be filled during Xen boot via the device tree. Each CPU node
contains a "reg" property which contains the hardware ID (ie MPIDR[0:23]).

Also move /cpus parsing later so we can use the dt_* API.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/setup.c
xen/arch/arm/smpboot.c
xen/common/device_tree.c
xen/include/asm-arm/processor.h