Message ID | 20190128230700.7325-3-stuart.menefy@mathembedded.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | Resuscitate Exynos 5260 support | expand |
On Mon, Jan 28, 2019 at 11:06:45PM +0000, Stuart Menefy wrote: > 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> > --- > arch/arm/mach-exynos/platsmp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Thanks, applied. Best regards, Krzysztof
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index c39ffd2e2fe6..b6da7edbbd2f 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); }
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> --- arch/arm/mach-exynos/platsmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)