From: Thomas Petazzoni Date: Mon, 23 Dec 2013 08:48:09 +0000 (+0100) Subject: ARM: mvebu: move ARMADA_XP_MAX_CPUS to armada-370-xp.h X-Git-Url: http://pileus.org/git/?p=~andy%2Flinux;a=commitdiff_plain;h=59adf4b075a7d063efa818e5ba9807b0057cb523 ARM: mvebu: move ARMADA_XP_MAX_CPUS to armada-370-xp.h 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 Acked-by: Gregory CLEMENT Acked-by: Andrew Lunn Signed-off-by: Jason Cooper --- diff --git a/arch/arm/mach-mvebu/armada-370-xp.h b/arch/arm/mach-mvebu/armada-370-xp.h index c612b2c4ed6..4ed534d6be4 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 +#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 0e6016fadcc..8de509a14e8 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 void mvebu_restart(enum reboot_mode mode, const char *cmd);