Commit 8cf7d67b authored by Chris Fries's avatar Chris Fries Committed by hellsgod
Browse files

ARM: smp: Wait just 1 second for other CPU to halt


Currently, the busyloop waiting for a 2nd CPU to stop takes about 4
seconds.  Adjust for the overhead of the loop by looping every 1ms
instead of 1us.
Signed-off-by: default avatarChris Fries <C.Fries@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/537864


SLT-Approved: Slta Waiver <sltawvr@motorola.com>
Tested-by: default avatarJira Key <jirakey@motorola.com>
Reviewed-by: default avatarCheck Patch <CHEKPACH@motorola.com>
Reviewed-by: default avatarKlocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: default avatarIgor Kovalenko <cik009@motorola.com>
Reviewed-by: default avatarRussell Knize <rknize2@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
Signed-off-by: default avatarfranciscofranco <franciscofranco.1990@gmail.com>
parent d6c65bec
......@@ -706,9 +706,9 @@ void smp_send_stop(void)
smp_cross_call(&mask, IPI_CPU_STOP);
/* Wait up to one second for other CPUs to stop */
timeout = USEC_PER_SEC;
timeout = MSEC_PER_SEC;
while (num_active_cpus() > 1 && timeout--)
udelay(1);
mdelay(1);
if (num_active_cpus() > 1)
pr_warning("SMP: failed to stop secondary CPUs\n");
......
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