commit | 67b508715a61962f9b5b3ef3432e045a9cba4f1e | [log] [tgz] |
---|---|---|
author | viresh kumar <viresh.kumar@st.com> | Thu Apr 19 04:23:25 2012 +0100 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Thu Apr 19 19:34:26 2012 +0100 |
tree | f7627533b8bb86433bbd84e98145cf4d1ff2c7a6 | |
parent | a8a97db984bdc5e89d42e41891543d2daaf314cb [diff] |
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>