Commit 07a496de authored by Russell King's avatar Russell King

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: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent d9b778e7
...@@ -69,8 +69,6 @@ static const struct omap_smp_config omap5_cfg __initconst = { ...@@ -69,8 +69,6 @@ static const struct omap_smp_config omap5_cfg __initconst = {
.startup_addr = omap5_secondary_startup, .startup_addr = omap5_secondary_startup,
}; };
static DEFINE_SPINLOCK(boot_lock);
void __iomem *omap4_get_scu_base(void) void __iomem *omap4_get_scu_base(void)
{ {
return cfg.scu_base; return cfg.scu_base;
...@@ -173,12 +171,6 @@ static void omap4_secondary_init(unsigned int cpu) ...@@ -173,12 +171,6 @@ static void omap4_secondary_init(unsigned int cpu)
/* Enable ACR to allow for ICUALLU workaround */ /* Enable ACR to allow for ICUALLU workaround */
omap5_secondary_harden_predictor(); omap5_secondary_harden_predictor();
} }
/*
* Synchronise with the boot thread.
*/
spin_lock(&boot_lock);
spin_unlock(&boot_lock);
} }
static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle) 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) ...@@ -187,12 +179,6 @@ static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
static bool booted; static bool booted;
static struct powerdomain *cpu1_pwrdm; static struct powerdomain *cpu1_pwrdm;
/*
* Set synchronisation state between this boot processor
* and the secondary one
*/
spin_lock(&boot_lock);
/* /*
* Update the AuxCoreBoot0 with boot state for secondary core. * Update the AuxCoreBoot0 with boot state for secondary core.
* omap4_secondary_startup() routine will hold the secondary core till * 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) ...@@ -266,12 +252,6 @@ static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
arch_send_wakeup_ipi_mask(cpumask_of(cpu)); arch_send_wakeup_ipi_mask(cpumask_of(cpu));
/*
* Now the secondary core is starting up let it run its
* calibrations, then wait for it to finish
*/
spin_unlock(&boot_lock);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment