diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-12-07 10:38:04 -0500 |
---|---|---|
committer | Dave Martin <dave.martin@linaro.org> | 2011-12-19 08:47:39 -0500 |
commit | 3b55658aefbf82646a246f3c8a14b9b8a24198a9 (patch) | |
tree | 9d878552336a55c8eff7745e43cc6e5108cf6dce /arch/arm/mach-realview/Kconfig | |
parent | ce5ea9f3767e8589521319cae2eb6e05c52bd056 (diff) |
ARM: SMP: Refactor Kconfig to be more maintainable
Making SMP depend on (huge list of MACH_ and ARCH_ configs) is
bothersome to maintain and likely to lead to merge conflicts.
This patch moves the knowledge of which platforms are SMP-capable
to the individual machines. To enable this, a new HAVE_SMP config
option is introduced to allow machines to indicate that they can
run in a SMP configuration.
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
(for nomadik, ux500)
Acked-by: Tony Lindgren <tony@atomide.com>
(for omap)
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
(for exynos)
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
(for imx)
Acked-by: Olof Johansson <olof@lixom.net>
(for tegra)
Diffstat (limited to 'arch/arm/mach-realview/Kconfig')
-rw-r--r-- | arch/arm/mach-realview/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-realview/Kconfig b/arch/arm/mach-realview/Kconfig index 3dd620f8dd9b..c593be428b8f 100644 --- a/arch/arm/mach-realview/Kconfig +++ b/arch/arm/mach-realview/Kconfig | |||
@@ -12,6 +12,7 @@ config REALVIEW_EB_A9MP | |||
12 | bool "Support Multicore Cortex-A9 Tile" | 12 | bool "Support Multicore Cortex-A9 Tile" |
13 | depends on MACH_REALVIEW_EB | 13 | depends on MACH_REALVIEW_EB |
14 | select CPU_V7 | 14 | select CPU_V7 |
15 | select HAVE_SMP | ||
15 | select MIGHT_HAVE_CACHE_L2X0 | 16 | select MIGHT_HAVE_CACHE_L2X0 |
16 | help | 17 | help |
17 | Enable support for the Cortex-A9MPCore tile fitted to the | 18 | Enable support for the Cortex-A9MPCore tile fitted to the |
@@ -22,6 +23,7 @@ config REALVIEW_EB_ARM11MP | |||
22 | depends on MACH_REALVIEW_EB | 23 | depends on MACH_REALVIEW_EB |
23 | select CPU_V6K | 24 | select CPU_V6K |
24 | select ARCH_HAS_BARRIERS if SMP | 25 | select ARCH_HAS_BARRIERS if SMP |
26 | select HAVE_SMP | ||
25 | select MIGHT_HAVE_CACHE_L2X0 | 27 | select MIGHT_HAVE_CACHE_L2X0 |
26 | help | 28 | help |
27 | Enable support for the ARM11MPCore tile fitted to the Realview(R) | 29 | Enable support for the ARM11MPCore tile fitted to the Realview(R) |
@@ -41,6 +43,7 @@ config MACH_REALVIEW_PB11MP | |||
41 | select CPU_V6K | 43 | select CPU_V6K |
42 | select ARM_GIC | 44 | select ARM_GIC |
43 | select HAVE_PATA_PLATFORM | 45 | select HAVE_PATA_PLATFORM |
46 | select HAVE_SMP | ||
44 | select MIGHT_HAVE_CACHE_L2X0 | 47 | select MIGHT_HAVE_CACHE_L2X0 |
45 | select ARCH_HAS_BARRIERS if SMP | 48 | select ARCH_HAS_BARRIERS if SMP |
46 | help | 49 | help |
@@ -82,6 +85,7 @@ config MACH_REALVIEW_PBX | |||
82 | bool "Support RealView(R) Platform Baseboard Explore" | 85 | bool "Support RealView(R) Platform Baseboard Explore" |
83 | select ARM_GIC | 86 | select ARM_GIC |
84 | select HAVE_PATA_PLATFORM | 87 | select HAVE_PATA_PLATFORM |
88 | select HAVE_SMP | ||
85 | select MIGHT_HAVE_CACHE_L2X0 | 89 | select MIGHT_HAVE_CACHE_L2X0 |
86 | select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET | 90 | select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET |
87 | select ZONE_DMA if SPARSEMEM | 91 | select ZONE_DMA if SPARSEMEM |