From: Andre Przywara Subject: [PATCH 3/4] arm: dont give up on EAGAIN if PSCI is defined Date: Mon, 25 Nov 2013 13:02:43 +0100 Message-ID: <1385380964-22230-4-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 Currently the platforms define an empty, zero-returning cpu_up function to state that they don't need any special treatment beside the GIC SEV kick to come up. Allow platforms which only provide PSCI to not define a platform specific cpu_up() function at all. For this we need to handle the EAGAIN error code that the platform returns in this case and ignore that if a PSCI node was found in the DTB. Signed-off-by: Andre Przywara --- xen/arch/arm/smpboot.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c index 44326d8..14774c5 100644 --- a/xen/arch/arm/smpboot.c +++ b/xen/arch/arm/smpboot.c @@ -412,8 +412,11 @@ int __cpu_up(unsigned int cpu) if ( rc < 0 ) { - printk("Failed to bring up CPU%d\n", cpu); - return rc; + if ( rc != -EAGAIN || psci_host_cpu_on_nr == 0 ) + { + printk("Failed to bring up CPU%d\n", cpu); + return rc; + } } if ( psci_host_cpu_on_nr != 0 ) -- 1.7.12.1