diff options
author | Nishanth Menon <nm@ti.com> | 2014-02-28 20:43:47 +0100 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-02-28 20:43:47 +0100 |
commit | 110e884d829448e24959f424b31be5bc75bcca6e (patch) | |
tree | 1e13b3c975827e4ff5fa2c244072e452d89894c5 /arch/arm/mach-omap2/dpll3xxx.c | |
parent | ARM: OMAP2+: clock: fix rate prints (diff) | |
download | linux-110e884d829448e24959f424b31be5bc75bcca6e.tar.xz linux-110e884d829448e24959f424b31be5bc75bcca6e.zip |
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>
Diffstat (limited to 'arch/arm/mach-omap2/dpll3xxx.c')
-rw-r--r-- | arch/arm/mach-omap2/dpll3xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/dpll3xxx.c b/arch/arm/mach-omap2/dpll3xxx.c index 3185ced807c9..d9bcbf7641b5 100644 --- a/arch/arm/mach-omap2/dpll3xxx.c +++ b/arch/arm/mach-omap2/dpll3xxx.c @@ -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; |