clk: optimize the divider walk in clk_divider_bestdiv()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 5 Jan 2016 03:43:41 +0000 (12:43 +0900)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 30 Jan 2016 00:45:32 +0000 (16:45 -0800)
commit653d1452b452207999b67ab943c27cd80b7bd430
tree1efc23d06e71a13f461596fc4c2aa02073caa894
parent090341b0a95d1f6d762915a75c13b393366f4ab3
clk: optimize the divider walk in clk_divider_bestdiv()

Because _next_div() returns a valid divider, there is no need to
consult _is_valid_div() for the validity of the divider in every
iteration.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-divider.c