Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370521
b: refs/heads/master
c: 2f747db
h: refs/heads/master
i:
  370519: 7bcecb3
v: v3
  • Loading branch information
Magnus Damm authored and Simon Horman committed Mar 12, 2013
1 parent c4081f6 commit d3c6ae9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ae56a951de0efbf36a51de5b2e91db10425c771
refs/heads/master: 2f747dbab424396b797d8abfb5d54c5e19003885
21 changes: 8 additions & 13 deletions trunk/arch/arm/mach-shmobile/smp-emev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ static void modify_scu_cpu_psr(unsigned long set, unsigned long clr)

}

static unsigned int __init emev2_get_core_count(void)
{
if (!scu_base) {
scu_base = ioremap(EMEV2_SCU_BASE, PAGE_SIZE);
emev2_clock_init(); /* need ioremapped SMU */
}

WARN_ON_ONCE(!scu_base);

return scu_base ? scu_get_core_count(scu_base) : 1;
}

static void __cpuinit emev2_secondary_init(unsigned int cpu)
{
gic_secondary_init(0);
Expand Down Expand Up @@ -93,7 +81,14 @@ static void __init emev2_smp_prepare_cpus(unsigned int max_cpus)

static void __init emev2_smp_init_cpus(void)
{
unsigned int ncores = emev2_get_core_count();
unsigned int ncores;

if (!scu_base) {
scu_base = ioremap(EMEV2_SCU_BASE, PAGE_SIZE);
emev2_clock_init(); /* need ioremapped SMU */
}

ncores = scu_base ? scu_get_core_count(scu_base) : 1;

shmobile_smp_init_cpus(ncores);
}
Expand Down

0 comments on commit d3c6ae9

Please sign in to comment.