]> Pileus Git - ~andy/linux/commit
ARM: 7392/1: CLKDEV: Optimize clk_find()
authorviresh kumar <viresh.kumar@st.com>
Thu, 19 Apr 2012 03:23:25 +0000 (04:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Apr 2012 18:34:26 +0000 (19:34 +0100)
commit67b508715a61962f9b5b3ef3432e045a9cba4f1e
treef7627533b8bb86433bbd84e98145cf4d1ff2c7a6
parenta8a97db984bdc5e89d42e41891543d2daaf314cb
ARM: 7392/1: CLKDEV: Optimize clk_find()

clk_find must return as soon as it gets the correct clock. Currently it check
all clocks until it found a lookup with both dev_id and con_id matching.

If only one of them is passed, then we don't actually need to wait for both of
them to match. We can quit as soon as the requested id (dev_id or con_id)
matches.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/clk/clkdev.c