提交 ae35c483 编写于 作者: M Marek Szyprowski 提交者: Krzysztof Kozlowski

ARM: EXYNOS: Simplify code in coupled CPU idle hot path

exynos_enter_aftr() is called by coupled CPU idle code every time CPU
enters idle state, what can be considered as a hot path. Replace
of_machine_is_compatible() call with a simple SoC revision check.

of_machine_is_compatible() function performs a dozen of string comparisons
during the full device tree walk, while soc_is_exynos4412() is a simple
integer check on SoC revision variable.
Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
Acked-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org>
上级 a7480dbc
...@@ -163,7 +163,7 @@ void exynos_enter_aftr(void) ...@@ -163,7 +163,7 @@ void exynos_enter_aftr(void)
exynos_pm_central_suspend(); exynos_pm_central_suspend();
if (of_machine_is_compatible("samsung,exynos4412")) { if (soc_is_exynos4412()) {
/* Setting SEQ_OPTION register */ /* Setting SEQ_OPTION register */
pmu_raw_writel(S5P_USE_STANDBY_WFI0 | S5P_USE_STANDBY_WFE0, pmu_raw_writel(S5P_USE_STANDBY_WFI0 | S5P_USE_STANDBY_WFE0,
S5P_CENTRAL_SEQ_OPTION); S5P_CENTRAL_SEQ_OPTION);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册