clk: skip unnecessary set_phase if nothing to do
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 26 Feb 2016 01:25:52 +0000 (09:25 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 26 Feb 2016 02:10:51 +0000 (18:10 -0800)
commit023bd7166be0595d18220dfd5c9765b3970f6ef3
tree0e4a273d8a1332e68ad7af4e8c30a22db6815fc6
parent2103a2156119b30f5924af2a1094227954be4617
clk: skip unnecessary set_phase if nothing to do

Let's compare the degrees from clk_set_rate with
clk->core->phase. If the requested degrees is already
there, skip the following steps.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
[sboyd@codeaurora.org: s/drgrees/degrees/ in commit text]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c