Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9bba615 authored by Kukjin Kim's avatar Kukjin Kim
Browse files

ARM: EXYNOS: add support get_core_count() for EXYNOS5250



The EXYNOS5250 has two Cortex-A15 cores and there's no
need to call scu_enable() in platform_smp_prepare_cpus()
because Cortex-A15 has no regarding scu register which
can be used for getting number of cores.

Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 330c90a5
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -166,6 +166,9 @@ void __init smp_init_cpus(void)
	void __iomem *scu_base = scu_base_addr();
	unsigned int i, ncores;

	if (soc_is_exynos5250())
		ncores = 2;
	else
		ncores = scu_base ? scu_get_core_count(scu_base) : 1;

	/* sanity check */
@@ -183,7 +186,7 @@ void __init smp_init_cpus(void)

void __init platform_smp_prepare_cpus(unsigned int max_cpus)
{

	if (!soc_is_exynos5250())
		scu_enable(scu_base_addr());

	/*