Commit 4bdf2f3f authored by Stuart Menefy's avatar Stuart Menefy Committed by Krzysztof Kozlowski

ARM: exynos: Fix timeout when booting secondary CPUs

Without this fix the loop waiting for the timeout exits, but the
subsequent test to see if the timeout occurred fails.
Signed-off-by: default avatarStuart Menefy <stuart.menefy@mathembedded.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent e2477233
......@@ -336,9 +336,9 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle)
/* wait max 10 ms until cpu1 is on */
while (exynos_cpu_power_state(core_id)
!= S5P_CORE_LOCAL_PWR_EN) {
if (timeout-- == 0)
if (timeout == 0)
break;
timeout--;
mdelay(1);
}
......
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