commit | 7205eea39fbe5fd4c30634fcc56b4b1e88738973 | [log] [tgz] |
---|---|---|
author | Matt Wagantall <mattw@codeaurora.org> | Fri Nov 04 17:31:29 2011 -0700 |
committer | Matt Wagantall <mattw@codeaurora.org> | Wed Nov 09 12:34:45 2011 -0800 |
tree | 44437fd2ab3afe01e734d17956fb5a54f36539cc | |
parent | ec2515fdcb3070e7ec80bf865b01e43c8015a43f [diff] |
msm: clock: Decrease voltage voting overhead for RPM and PCOM clocks The clk_get_rate() calls that were added to clk_enable(), clk_disable(), and clk_set_rate() to support voltage scaling result in unnecessary round-trips to the remote processor for remotely-managed clocks. Fix this by caching the last set rate in 'struct clk' instead of calling clk_get() to query it. Change-Id: I7c303afe3988c3731efb60d1067842cf586baf7e Signed-off-by: Matt Wagantall <mattw@codeaurora.org>