From: Andre Przywara Subject: [PATCH 4/4] arm64: defer CPU initialization on ARM64 if PSCI is present Date: Mon, 25 Nov 2013 13:02:44 +0100 Message-ID: <1385380964-22230-5-git-send-email-andre.przywara@linaro.org> References: <1385380964-22230-1-git-send-email-andre.przywara@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385380964-22230-1-git-send-email-andre.przywara@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com Cc: julien.grall@linaro.org, Andre Przywara , patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Since PSCI is now handled in ARM generic smpboot code, we can remove the PSCI todo from the ARM64 specific code and defer the actual PSCI handling. Signed-off-by: Andre Przywara --- xen/arch/arm/arm64/smpboot.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/arm64/smpboot.c b/xen/arch/arm/arm64/smpboot.c index 8239590..715c44e 100644 --- a/xen/arch/arm/arm64/smpboot.c +++ b/xen/arch/arm/arm64/smpboot.c @@ -61,8 +61,11 @@ int __init arch_cpu_init(int cpu, struct dt_device_node *dn) if ( !strcmp(enable_method, "spin-table") ) smp_spin_table_init(cpu, dn); - /* TODO: method "psci" */ - else + else if ( !strcmp(enable_method, "psci") ) + { + /* PSCI code is handled somewhere else */ + return -EAGAIN; + } else { printk("CPU%d has unknown enable method \"%s\"\n", cpu, enable_method); return -EINVAL; -- 1.7.12.1