aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-09-13 13:31:19 -0400
committerKukjin Kim <kgene.kim@samsung.com>2014-09-13 13:31:19 -0400
commit68ba947c1208504080397b9fc55a0ae9ba92936d (patch)
tree13a3401e3eb34a01232ea35bc41c501fc018d6d5
parent9740bdd985277a7f71423738c34a2c88cd533f1c (diff)
ARM: EXYNOS: Do not calculate boot address twice
Commit b3205dea8fbf ("ARM: EXYNOS: Map SYSRAM through generic DT bindings") introduced local variable boot_reg where boot address from cpu_boot_reg() call is stored. Re-use it instead calling cpu_boot_reg() again. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Sachin Kamat <sachin.kamat@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--arch/arm/mach-exynos/platsmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c
index a9f1cf759949..41ae28d69e6f 100644
--- a/arch/arm/mach-exynos/platsmp.c
+++ b/arch/arm/mach-exynos/platsmp.c
@@ -224,7 +224,7 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle)
224 ret = PTR_ERR(boot_reg); 224 ret = PTR_ERR(boot_reg);
225 goto fail; 225 goto fail;
226 } 226 }
227 __raw_writel(boot_addr, cpu_boot_reg(core_id)); 227 __raw_writel(boot_addr, boot_reg);
228 } 228 }
229 229
230 call_firmware_op(cpu_boot, core_id); 230 call_firmware_op(cpu_boot, core_id);
@@ -313,7 +313,7 @@ static void __init exynos_smp_prepare_cpus(unsigned int max_cpus)
313 313
314 if (IS_ERR(boot_reg)) 314 if (IS_ERR(boot_reg))
315 break; 315 break;
316 __raw_writel(boot_addr, cpu_boot_reg(core_id)); 316 __raw_writel(boot_addr, boot_reg);
317 } 317 }
318 } 318 }
319} 319}