UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 3 Mar 2016 07:22:00 +0000 (15:22 +0800)
commitc0eebf54ca3300666972ecb74faeb545a5303288
treedc5343193ae0b2df2cb316d6703b5d4bb531449d
parent0c268bf997b923a166381601380d2af36a66c189
UPSTREAM: 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>
(cherry picked from git.kernel.org clk/linux.git clk-next
 commit 023bd7166be0595d18220dfd5c9765b3970f6ef3)

Change-Id: Icc3be314e8f696a18bf0cd92867cd5f956817bbc
drivers/clk/clk.c