From: Ian Campbell Subject: Re: [PATCH] xen/arm: correct duplicate MPIDR check to actually skip the node Date: Mon, 11 Nov 2013 16:10:02 +0000 Message-ID: <1384186202.19117.71.camel@kazak.uk.xensource.com> References: <1383870723-9579-1-git-send-email-mattjd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vfu3z-0001tb-Ok for xen-devel@lists.xenproject.org; Mon, 11 Nov 2013 16:10:07 +0000 In-Reply-To: <1383870723-9579-1-git-send-email-mattjd@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Matthew Daley Cc: Julien Grall , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Fri, 2013-11-08 at 13:32 +1300, Matthew Daley wrote: > Signed-off-by: Matthew Daley > --- > I assume this was what was really intended... CCing Julien... But yes it looks like it. > xen/arch/arm/smpboot.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c > index b836be4..6c90fa6 100644 > --- a/xen/arch/arm/smpboot.c > +++ b/xen/arch/arm/smpboot.c > @@ -161,9 +161,11 @@ void __init smp_init_cpus(void) > printk(XENLOG_WARNING > "cpu node `%s`: duplicate /cpu reg properties in the DT\n", > dt_node_full_name(cpu)); > - continue; > + break; > } > } > + if ( j != cpuidx ) > + continue; Took me a moment to figure out what this was for. I'm half minded to suggest this is one of those places where a "goto next_cpu" would have been ok, I'd definitely want a second opinion on that though! > > /* > * Build a stashed array of MPIDR values. Numbering scheme requires