From: Stuart Menefy Date: Mon, 28 Jan 2019 23:06:45 +0000 (+0000) Subject: ARM: exynos: Fix timeout when booting secondary CPUs X-Git-Tag: v5.1-rc1~158^2~6^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bdf2f3f20a9de9b07f97907820c42f3a49ba63d;p=thirdparty%2Flinux.git 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 Signed-off-by: Krzysztof Kozlowski --- diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index c39ffd2e2fe69..b6da7edbbd2fd 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -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); }