]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Skip fetching index for single parent clocks
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 22 Dec 2014 19:26:42 +0000 (11:26 -0800)
committerMichael Turquette <mturquette@linaro.org>
Tue, 20 Jan 2015 18:09:06 +0000 (10:09 -0800)
commit06a4a4e34afcaac0057a6f7c338bd44b9451293b
tree27f95def261db038ad9ece4cd62b52ac3b4e2854
parent83b33aa9c6fa9be48d2f2c261a621e97eb35f8ca
clk: Skip fetching index for single parent clocks

We don't need to fetch the parent index for clocks if they only
have one parent. Doing this also avoid an unnecessary allocation
for the parent cache.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk.c