Skip to content

Commit

Permalink
ARM: EXYNOS: Do not calculate boot address twice
Browse files Browse the repository at this point in the history
Commit b3205de ("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>
  • Loading branch information
Krzysztof Kozlowski authored and Kukjin Kim committed Sep 13, 2014
1 parent 9740bdd commit 68ba947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-exynos/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle)
ret = PTR_ERR(boot_reg);
goto fail;
}
__raw_writel(boot_addr, cpu_boot_reg(core_id));
__raw_writel(boot_addr, boot_reg);
}

call_firmware_op(cpu_boot, core_id);
Expand Down Expand Up @@ -313,7 +313,7 @@ static void __init exynos_smp_prepare_cpus(unsigned int max_cpus)

if (IS_ERR(boot_reg))
break;
__raw_writel(boot_addr, cpu_boot_reg(core_id));
__raw_writel(boot_addr, boot_reg);
}
}
}
Expand Down

0 comments on commit 68ba947

Please sign in to comment.