All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: Remove unneeded check in SMP initialization
@ 2016-10-05 10:28 Laurent Pinchart
  2016-10-05 11:25 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Laurent Pinchart @ 2016-10-05 10:28 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Magnus Damm

The SMP initialization function is only called if CONFIG_SMP is defined.
Remove the duplicate check.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
 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;
 }
-- 
Regards,

Laurent Pinchart

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: shmobile: Remove unneeded check in SMP initialization
  2016-10-05 10:28 [PATCH] ARM: shmobile: Remove unneeded check in SMP initialization Laurent Pinchart
@ 2016-10-05 11:25 ` Geert Uytterhoeven
  2016-10-05 13:04   ` Laurent Pinchart
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2016-10-05 11:25 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: Linux-Renesas, Magnus Damm

Hi Laurent,

On Wed, Oct 5, 2016 at 12:28 PM, Laurent Pinchart
<laurent.pinchart+renesas@ideasonboard.com> wrote:
> The SMP initialization function is only called if CONFIG_SMP is defined.
> Remove the duplicate check.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
>  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.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: shmobile: Remove unneeded check in SMP initialization
  2016-10-05 11:25 ` Geert Uytterhoeven
@ 2016-10-05 13:04   ` Laurent Pinchart
  2016-10-07  3:27     ` Simon Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Laurent Pinchart @ 2016-10-05 13:04 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Laurent Pinchart, Linux-Renesas, Magnus Damm

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
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >  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.

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: shmobile: Remove unneeded check in SMP initialization
  2016-10-05 13:04   ` Laurent Pinchart
@ 2016-10-07  3:27     ` Simon Horman
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2016-10-07  3:27 UTC (permalink / raw)
  To: Laurent Pinchart
  Cc: Geert Uytterhoeven, Laurent Pinchart, Linux-Renesas, Magnus Damm

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
> > > <laurent.pinchart+renesas@ideasonboard.com>
> > > ---
> > > 
> > >  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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-07  3:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 10:28 [PATCH] ARM: shmobile: Remove unneeded check in SMP initialization Laurent Pinchart
2016-10-05 11:25 ` Geert Uytterhoeven
2016-10-05 13:04   ` Laurent Pinchart
2016-10-07  3:27     ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.