mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-05 19:35:05 +07:00
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. Signed-off-by: Nishanth Menon <nm@ti.com> Acked-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
This commit is contained in:
parent
0cc1d9446e
commit
110e884d82
@ -525,7 +525,7 @@ int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
|
|||||||
* stuff is inherited for free
|
* stuff is inherited for free
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!ret)
|
if (!ret && clk_get_parent(hw->clk) != new_parent)
|
||||||
__clk_reparent(hw->clk, new_parent);
|
__clk_reparent(hw->clk, new_parent);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user