Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258223
b: refs/heads/master
c: 7fa22bd
h: refs/heads/master
i:
  258221: 7d6690c
  258219: a470709
  258215: 7fcdfc7
  258207: 5dcf7cf
v: v3
  • Loading branch information
Stephen Boyd authored and Russell King committed Jul 7, 2011
1 parent ed2c0e1 commit ffe811f
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 60 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: 10cdc7e5129ac26aefece4c7a7d5b1a0285237c2
refs/heads/master: 7fa22bd5460bb2021729fa5a1012c60b9b3a56e2
11 changes: 9 additions & 2 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,21 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
*/
if (max_cpus > ncores)
max_cpus = ncores;

if (max_cpus > 1) {
if (ncores > 1 && max_cpus) {
/*
* Enable the local timer or broadcast device for the
* boot CPU, but only if we have more than one CPU.
*/
percpu_timer_setup();

/*
* Initialise the present map, which describes the set of CPUs
* actually populated at the present time. A platform should
* re-initialize the map in platform_smp_prepare_cpus() if
* present != possible (e.g. physical hotplug).
*/
init_cpu_present(&cpu_possible_map);

/*
* Initialise the SCU if there are more than one CPU
* and let them know where to start.
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/arm/mach-exynos4/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,6 @@ void __init smp_init_cpus(void)

void __init platform_smp_prepare_cpus(unsigned int max_cpus)
{
int i;

/*
* Initialise the present map, which describes the set of CPUs
* actually populated at the present time.
*/
for (i = 0; i < max_cpus; i++)
set_cpu_present(i, true);

scu_enable(scu_base_addr());

Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/arm/mach-msm/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,4 @@ void __init smp_init_cpus(void)

void __init platform_smp_prepare_cpus(unsigned int max_cpus)
{
int i;

/*
* Initialise the present map, which describes the set of CPUs
* actually populated at the present time.
*/
for (i = 0; i < max_cpus; i++)
set_cpu_present(i, true);
}
8 changes: 0 additions & 8 deletions trunk/arch/arm/mach-omap2/omap-smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ void __init smp_init_cpus(void)

void __init platform_smp_prepare_cpus(unsigned int max_cpus)
{
int i;

/*
* Initialise the present map, which describes the set of CPUs
* actually populated at the present time.
*/
for (i = 0; i < max_cpus; i++)
set_cpu_present(i, true);

/*
* Initialise the SCU and wake up the secondary core using
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/arm/mach-realview/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ void __init smp_init_cpus(void)

void __init platform_smp_prepare_cpus(unsigned int max_cpus)
{
int i;

/*
* Initialise the present map, which describes the set of CPUs
* actually populated at the present time.
*/
for (i = 0; i < max_cpus; i++)
set_cpu_present(i, true);

scu_enable(scu_base_addr());

Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm/mach-shmobile/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,5 @@ void __init smp_init_cpus(void)

void __init platform_smp_prepare_cpus(unsigned int max_cpus)
{
int i;

for (i = 0; i < max_cpus; i++)
set_cpu_present(i, true);

shmobile_smp_prepare_cpus();
}
8 changes: 0 additions & 8 deletions trunk/arch/arm/mach-tegra/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,6 @@ void __init smp_init_cpus(void)

void __init platform_smp_prepare_cpus(unsigned int max_cpus)
{
int i;

/*
* Initialise the present map, which describes the set of CPUs
* actually populated at the present time.
*/
for (i = 0; i < max_cpus; i++)
set_cpu_present(i, true);

scu_enable(scu_base);
}
8 changes: 0 additions & 8 deletions trunk/arch/arm/mach-ux500/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,6 @@ void __init smp_init_cpus(void)

void __init platform_smp_prepare_cpus(unsigned int max_cpus)
{
int i;

/*
* Initialise the present map, which describes the set of CPUs
* actually populated at the present time.
*/
for (i = 0; i < max_cpus; i++)
set_cpu_present(i, true);

scu_enable(scu_base_addr());
wakeup_secondary();
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/arm/mach-vexpress/ct-ca9x4.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,6 @@ static void ct_ca9x4_init_cpu_map(void)

static void ct_ca9x4_smp_enable(unsigned int max_cpus)
{
int i;
for (i = 0; i < max_cpus; i++)
set_cpu_present(i, true);

scu_enable(MMIO_P2V(A9_MPCORE_SCU));
}
#endif
Expand Down

0 comments on commit ffe811f

Please sign in to comment.