1
0
Fork 0

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: Stuart Menefy <stuart.menefy@mathembedded.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
hifive-unleashed-5.1
Stuart Menefy 2019-01-28 23:06:45 +00:00 committed by Krzysztof Kozlowski
parent e247723314
commit 4bdf2f3f20
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}