All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] ARM: mvebu: move ARMADA_XP_MAX_CPUS to armada-370-xp.h
Date: Mon, 23 Dec 2013 09:52:09 +0100	[thread overview]
Message-ID: <52B7F9B9.1020209@free-electrons.com> (raw)
In-Reply-To: <1387788491-3168-2-git-send-email-thomas.petazzoni@free-electrons.com>

Hi Thomas,

On 23/12/2013 09:48, Thomas Petazzoni wrote:
> The ARMADA_XP_MAX_CPUS definition was in common.h, which as its name
> says, is common to all mvebu SoCs. It is more logical to have this XP
> specific definition in the already existing armada-370-xp.h header
> file, especially in preparation to the addition of the support for
> other SOCs in mach-mvebu.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>


Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>


Thanks,

Gregory

> ---
>  arch/arm/mach-mvebu/armada-370-xp.h | 2 ++
>  arch/arm/mach-mvebu/common.h        | 2 --
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-mvebu/armada-370-xp.h b/arch/arm/mach-mvebu/armada-370-xp.h
> index c612b2c..4ed534d 100644
> --- a/arch/arm/mach-mvebu/armada-370-xp.h
> +++ b/arch/arm/mach-mvebu/armada-370-xp.h
> @@ -18,6 +18,8 @@
>  #ifdef CONFIG_SMP
>  #include <linux/cpumask.h>
>  
> +#define ARMADA_XP_MAX_CPUS 4
> +
>  void armada_mpic_send_doorbell(const struct cpumask *mask, unsigned int irq);
>  void armada_xp_mpic_smp_cpu_init(void);
>  #endif
> diff --git a/arch/arm/mach-mvebu/common.h b/arch/arm/mach-mvebu/common.h
> index e366010..f7ad45e 100644
> --- a/arch/arm/mach-mvebu/common.h
> +++ b/arch/arm/mach-mvebu/common.h
> @@ -15,8 +15,6 @@
>  #ifndef __ARCH_MVEBU_COMMON_H
>  #define __ARCH_MVEBU_COMMON_H
>  
> -#define ARMADA_XP_MAX_CPUS 4
> -
>  #include <linux/reboot.h>
>  
>  void mvebu_restart(enum reboot_mode mode, const char *cmd);
> 


-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-12-23  8:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-23  8:48 [PATCH 0/3] ARM: mvebu: minor improvements Thomas Petazzoni
2013-12-23  8:48 ` [PATCH 1/3] ARM: mvebu: move ARMADA_XP_MAX_CPUS to armada-370-xp.h Thomas Petazzoni
2013-12-23  8:52   ` Gregory CLEMENT [this message]
2013-12-25  1:51   ` Jason Cooper
2013-12-23  8:48 ` [PATCH 2/3] ARM: mvebu: fix register length for Armada XP PMSU Thomas Petazzoni
2013-12-23  8:52   ` Gregory CLEMENT
2013-12-25  1:58   ` Jason Cooper
2013-12-23  8:48 ` [PATCH 3/3] ARM: mvebu: make armada_370_xp_pmsu_init() static Thomas Petazzoni
2013-12-23  8:53   ` Gregory CLEMENT
2013-12-25  1:47   ` Jason Cooper
2013-12-23 16:13 ` [PATCH 0/3] ARM: mvebu: minor improvements Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52B7F9B9.1020209@free-electrons.com \
    --to=gregory.clement@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.