From: Andre Przywara Date: Thu, 5 Dec 2013 10:08:11 +0000 (+0100) Subject: arm32: enable PSCI secondary CPU bringup X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5810 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=875c495af5f2f07d98348d1ff19277f49d18be92;p=xen.git arm32: enable PSCI secondary CPU bringup If the device tree contains a PSCI node, we bring up secondary CPUs by invoking the appropriate PSCI handler. This will take priority over platform specific functions (which could call the PSCI wrapper themselves if needed), so any PSCI enablement of a platform will automatically be used (as on Linux). Signed-off-by: Andre Przywara Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/arm32/smpboot.c b/xen/arch/arm/arm32/smpboot.c index 88fe8fbebc..2a77f29dfa 100644 --- a/xen/arch/arm/arm32/smpboot.c +++ b/xen/arch/arm/arm32/smpboot.c @@ -10,7 +10,9 @@ int __init arch_smp_init(void) int __init arch_cpu_init(int cpu, struct dt_device_node *dn) { - /* TODO handle PSCI init */ + /* Not needed on ARM32, as there is no relevant information in + * the CPU device tree node for ARMv7 CPUs. + */ return 0; } diff --git a/xen/arch/arm/platform.c b/xen/arch/arm/platform.c index e13a354cd5..1122bbd976 100644 --- a/xen/arch/arm/platform.c +++ b/xen/arch/arm/platform.c @@ -20,6 +20,7 @@ #include #include #include +#include extern const struct platform_desc _splatform[], _eplatform[]; @@ -109,6 +110,9 @@ int __init platform_specific_mapping(struct domain *d) #ifdef CONFIG_ARM_32 int __init platform_cpu_up(int cpu) { + if ( psci_available ) + return call_psci_cpu_on(cpu); + if ( platform && platform->cpu_up ) return platform->cpu_up(cpu);