projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e247723
)
ARM: exynos: Fix timeout when booting secondary CPUs
author
Stuart Menefy
<stuart.menefy@mathembedded.com>
Mon, 28 Jan 2019 23:06:45 +0000
(23:06 +0000)
committer
Krzysztof Kozlowski
<krzk@kernel.org>
Fri, 1 Feb 2019 19:07:47 +0000
(20:07 +0100)
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>
arch/arm/mach-exynos/platsmp.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-exynos/platsmp.c
b/arch/arm/mach-exynos/platsmp.c
index
c39ffd2
..
b6da7ed
100644
(file)
--- 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);
}