RE: [PATCH 9/9] ARM: EXYNOS: temporary fixup regarding get_core_count()
Kyungmin Park wrote: On 2/1/12, Kukjin Kim kgene@samsung.com wrote: Signed-off-by: Kukjin Kim kgene@samsung.com --- [...] - ncores = scu_base ? scu_get_core_count(scu_base) : 1; + if (soc_is_exynos5250()) + ncores = 2; I saw the related mail thread, I wonder then how to handle this at other A15 board? Device Tree? Well, as you know, the EXYNOS5250 has two A15 cores :) Thanks. Best regards, Kgene. -- Kukjin Kim kgene@samsung.com, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd. -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 9/9] ARM: EXYNOS: temporary fixup regarding get_core_count()
On 2/1/12, Kukjin Kim kgene@samsung.com wrote: Signed-off-by: Kukjin Kim kgene@samsung.com --- arch/arm/mach-exynos/platsmp.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 683aec7..dfb4630 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -165,7 +165,10 @@ void __init smp_init_cpus(void) void __iomem *scu_base = scu_base_addr(); unsigned int i, ncores; - ncores = scu_base ? scu_get_core_count(scu_base) : 1; + if (soc_is_exynos5250()) + ncores = 2; I saw the related mail thread, I wonder then how to handle this at other A15 board? Device Tree? + else + ncores = scu_base ? scu_get_core_count(scu_base) : 1; /* sanity check */ if (ncores nr_cpu_ids) { @@ -182,8 +185,8 @@ void __init smp_init_cpus(void) void __init platform_smp_prepare_cpus(unsigned int max_cpus) { - - scu_enable(scu_base_addr()); + if (!soc_is_exynos5250()) + scu_enable(scu_base_addr()); /* * Write the address of secondary startup into the -- 1.7.4.4 -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html