From: Ian Campbell Subject: Re: [PATCH 4/4] arm64: defer CPU initialization on ARM64 if PSCI is present Date: Tue, 26 Nov 2013 11:24:11 +0000 Message-ID: <1385465051.23112.43.camel@kazak.uk.xensource.com> References: <1385380964-22230-1-git-send-email-andre.przywara@linaro.org> <1385380964-22230-5-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-5-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: Andre Przywara Cc: julien.grall@linaro.org, xen-devel@lists.xen.org, patches@linaro.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, 2013-11-25 at 13:02 +0100, Andre Przywara wrote: > 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; I think this should check for the presence of PSCI and either return an error or success (on the basis that nothing needs doing). Ian.