msm: platsmp: Remove extraneous boot_secondary delay
Change msleep_interruptible to usleep. msleep_interruptible
takes around 16 ms to return while the secondary CPU can
come up in about 1.5 ms. usleep is much finer grained and
returns every .5 ms. This allows boot_secondary to complete
much more quickly.
Signed-off-by: Maya Spivak <mspivak@codeaurora.org>
diff --git a/arch/arm/mach-msm/platsmp.c b/arch/arm/mach-msm/platsmp.c
index 84e798a..3f40a12 100644
--- a/arch/arm/mach-msm/platsmp.c
+++ b/arch/arm/mach-msm/platsmp.c
@@ -27,8 +27,6 @@
#include "pm.h"
#include "scm-boot.h"
-#define SECONDARY_CPU_WAIT_MS 10
-
int pen_release = -1;
/* Initialize the present map (cpu_set(i, cpu_present_map)). */
@@ -138,8 +136,8 @@
while (pen_release != 0xFFFFFFFF) {
dmac_inv_range((void *)&pen_release,
(void *)(&pen_release+sizeof(pen_release)));
- msleep_interruptible(1);
- if (cnt++ >= SECONDARY_CPU_WAIT_MS)
+ usleep(500);
+ if (cnt++ >= 10)
break;
}