From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kirsty.vergenet.net ([202.4.237.240]:37763 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933698AbcJGD17 (ORCPT ); Thu, 6 Oct 2016 23:27:59 -0400 Date: Fri, 7 Oct 2016 12:27:55 +0900 From: Simon Horman To: Laurent Pinchart Cc: Geert Uytterhoeven , Laurent Pinchart , Linux-Renesas , Magnus Damm Subject: Re: [PATCH] ARM: shmobile: Remove unneeded check in SMP initialization Message-ID: <20161007032754.GM13721@verge.net.au> References: <1475663291-4502-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> <6311567.Xmt6xgUBQy@avalon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6311567.Xmt6xgUBQy@avalon> Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: On Wed, Oct 05, 2016 at 04:04:39PM +0300, Laurent Pinchart wrote: > Hi Geert, > > On Wednesday 05 Oct 2016 13:25:12 Geert Uytterhoeven wrote: > > On Wed, Oct 5, 2016 at 12:28 PM, Laurent Pinchart wrote: > > > The SMP initialization function is only called if CONFIG_SMP is defined. > > > Remove the duplicate check. > > > > > > Signed-off-by: Laurent Pinchart > > > > > > --- > > > > > > arch/arm/mach-shmobile/platsmp.c | 4 ---- > > > 1 file changed, 4 deletions(-) > > > > > > diff --git a/arch/arm/mach-shmobile/platsmp.c > > > b/arch/arm/mach-shmobile/platsmp.c index 02e21bceb085..48595a397220 > > > 100644 > > > --- a/arch/arm/mach-shmobile/platsmp.c > > > +++ b/arch/arm/mach-shmobile/platsmp.c > > > @@ -39,9 +39,5 @@ bool shmobile_smp_cpu_can_disable(unsigned int cpu) > > > > > > bool __init shmobile_smp_init_fallback_ops(void) > > > { > > > - /* fallback on PSCI/smp_ops if no other DT based method is > > > detected */ > > > - if (!IS_ENABLED(CONFIG_SMP)) > > > - return false; > > > - > > > return platform_can_secondary_boot() ? true : false; > > > } > > > > This check was added recently, because the UP build was broken. > > I should have found that out. Sorry about the noise and thanks for the review. I am discarding this patch. Let me know if that was not what you were after.