Skip to content

Commit 07a496d

Browse files
author
Russell King
committed
ARM: omap2: remove unnecessary boot_lock
The boot_lock is something that was required for ARM development platforms to ensure that the delay calibration worked properly. This is not necessary for modern platforms that have better bus bandwidth and do not need to calibrate the delay loop for secondary cores. Remove the boot_lock entirely. Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent d9b778e commit 07a496d

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

‎arch/arm/mach-omap2/omap-smp.c‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ static const struct omap_smp_config omap5_cfg __initconst = {
6969
.startup_addr = omap5_secondary_startup,
7070
};
7171

72-
static DEFINE_SPINLOCK(boot_lock);
73-
7472
void __iomem *omap4_get_scu_base(void)
7573
{
7674
return cfg.scu_base;
@@ -173,12 +171,6 @@ static void omap4_secondary_init(unsigned int cpu)
173171
/* Enable ACR to allow for ICUALLU workaround */
174172
omap5_secondary_harden_predictor();
175173
}
176-
177-
/*
178-
* Synchronise with the boot thread.
179-
*/
180-
spin_lock(&boot_lock);
181-
spin_unlock(&boot_lock);
182174
}
183175

184176
static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
@@ -187,12 +179,6 @@ static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
187179
static bool booted;
188180
static struct powerdomain *cpu1_pwrdm;
189181

190-
/*
191-
* Set synchronisation state between this boot processor
192-
* and the secondary one
193-
*/
194-
spin_lock(&boot_lock);
195-
196182
/*
197183
* Update the AuxCoreBoot0 with boot state for secondary core.
198184
* omap4_secondary_startup() routine will hold the secondary core till
@@ -266,12 +252,6 @@ static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
266252

267253
arch_send_wakeup_ipi_mask(cpumask_of(cpu));
268254

269-
/*
270-
* Now the secondary core is starting up let it run its
271-
* calibrations, then wait for it to finish
272-
*/
273-
spin_unlock(&boot_lock);
274-
275255
return 0;
276256
}
277257

0 commit comments

Comments
 (0)