ARM: OMAP3+: DPLL: stop reparenting to same parent if already done
Subsystems (3)
PATCH 1/1 ARM: OMAP3+: DPLL: stop reparenting to same parent if already done
omap3_noncore_dpll_set_rate forces a reparent to the same clk_ref for every call that takes place. This is an can be done only if a change is detected.
--- arch/arm/mach-omap2/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/dpll3xxx.c +1 -1
@@ -525,7 +525,7 @@ int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,* stuff is inherited for free */ -if (!ret) +if (!ret &&clk_get_parent (hw->clk) != new_parent)__clk_reparent (hw->clk, new_parent);return 0 ;
Signature · 1 line
1.7.9.5
Tony Lindgren
maintainerQuoted 5 lines · Nishanth Menon
omap3_noncore_dpll_set_rateforces a reparent to the sameclk_reffor every call that takes place. This is an can be done only if a change is detected.Signed-off-by Nishanth Menon <[email protected]>
Would like to see acks on this too before applying.
Tony
Quoted 20 lines
--- arch/arm/mach-omap2/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-omap2/dpll3xxx.c +1
-1@@ -525,7 +525,7 @@ int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,* stuff is inherited for free */ -if (!ret) +if (!ret &&clk_get_parent (hw->clk) != new_parent)__clk_reparent (hw->clk, new_parent);return 0 ;Signature · 1 line
1.7.9.5
Quoted 8 lines · Tony Lindgren
Quoted 5 lines · Nishanth Menon
omap3_noncore_dpll_set_rateforces a reparent to the sameclk_reffor every call that takes place. This is an can be done only if a change is detected.Signed-off-by Nishanth Menon <[email protected]>Would like to see acks on this too before applying.
Looks good to me, ack.
-Tero
Quoted 23 lines
Tony
Quoted 20 lines
--- arch/arm/mach-omap2/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-omap2/dpll3xxx.c +1
-2@@ -525,7 +525,7 @@ int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,* stuff is inherited for free */ -if (!ret) +if (!ret &&clk_get_parent (hw->clk) != new_parent)__clk_reparent (hw->clk, new_parent);return 0 ; --1.7.9.5
Paul Walmsley
AppliedQuoted 5 lines · Nishanth Menon
omap3_noncore_dpll_set_rateforces a reparent to the sameclk_reffor every call that takes place. This is an can be done only if a change is detected.Signed-off-by Nishanth Menon <[email protected]>
Queued for v3.15 with Tero's ack unless the patch is updated to indicate that it's more than an optimization.
- Paul