The local_clock_reg_lock is used to protect registers accesses. Move the acquiring and releasing of this lock from rcg_clk_set_rate to set_rate_mnd and set_rate_hid to allow overriding of the RCG set rate op with ops that dont require the lock. Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org> (cherry picked from commit 8c26055e822312da17d93e2a252bf522e08c3965) Conflicts: arch/arm/mach-msm/clock-local2.c Change-Id: Ibb67a921f6b1c53573b864ce1bd05b13492b92f5 Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org> (cherry picked from commit 33ce43fe3edf79bbc8ab6948d96c463696237d3d)