clk: Restructure code for __clk_reparent
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 2 Apr 2013 21:09:37 +0000 (23:09 +0200)
committerMike Turquette <mturquette@linaro.org>
Tue, 9 Apr 2013 01:19:15 +0000 (18:19 -0700)
commitb33d212f4910ca44bd37d5e08422230687bd1378
tree8aa26057bdee65cae17d2d3fcc579bdbd4347ae1
parent918d7f6f68620e0721bb31402ebf87e15f826831
clk: Restructure code for __clk_reparent

Split __clk_reparent into three pieces, one for doing the actual
reparent for updating the clock tree topology, one for the
COMMON_CLK_DEBUG code and one for doing the rate recalculation.

This patch also makes it possible to hold the spinlock over the
update of the clock tree topology, which could not be done before
when both debugfs updates and clock rate updates was done within
the same function.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c