diff options
author | Hyungwon Hwang <human.hwang@samsung.com> | 2014-12-17 15:41:58 +0900 |
---|---|---|
committer | Hyungwon Hwang <human.hwang@samsung.com> | 2014-12-23 11:09:31 +0900 |
commit | 85136100ece1582aec0aff15186e79f27bc381df (patch) | |
tree | 9720e2bc5577e6d5383e02883fde4cdf673f3f6f | |
parent | 365c82f86e303f594f92453c0efcb09269c19232 (diff) | |
download | linux-3.10-85136100ece1582aec0aff15186e79f27bc381df.tar.gz linux-3.10-85136100ece1582aec0aff15186e79f27bc381df.tar.bz2 linux-3.10-85136100ece1582aec0aff15186e79f27bc381df.zip |
arm: exynos: platsmp: Add support Exynos5800 for platsmp
This patch make platsmp be available for Exynos5800. No register stores
the number of cores of Exynos5800. SCU in this code is only needed for
that purpose. So any code related SCU is not needed and get the number
of cores statically for Exynos5800.
Change-Id: Ide82ed13fbd2aeb02c6f0b2578b4cbc222c22f18
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
-rw-r--r-- | arch/arm/mach-exynos/platsmp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index ecf1ba04b19..f2f23b21982 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -224,6 +224,8 @@ static void __init exynos_smp_init_cpus(void) if (soc_is_exynos3250() || soc_is_exynos5250()) ncores = 2; + else if (soc_is_exynos5800()) + ncores = 8; else ncores = scu_base ? scu_get_core_count(scu_base) : 1; @@ -242,7 +244,8 @@ static void __init exynos_smp_prepare_cpus(unsigned int max_cpus) { int i; - if (!(soc_is_exynos3250() || soc_is_exynos5250() || soc_is_exynos5440())) + if (!(soc_is_exynos3250() || soc_is_exynos5250() || + soc_is_exynos5440() || soc_is_exynos5800())) scu_enable(scu_base_addr()); /* |