Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
ARM: EXYNOS: add support get_core_count() for EXYNOS5250
Browse files Browse the repository at this point in the history
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: Kukjin Kim <[email protected]>
  • Loading branch information
kgene committed Mar 14, 2012
1 parent 330c90a commit e9bba61
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions arch/arm/mach-exynos/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,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;
else
ncores = scu_base ? scu_get_core_count(scu_base) : 1;

/* sanity check */
if (ncores > nr_cpu_ids) {
Expand All @@ -183,8 +186,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
Expand Down

0 comments on commit e9bba61

Please sign in to comment.