msm-camera: Handling multiple camera open calls properly

Handling locks properly while multiple msm_open calls occured.

CRs-Fixed:453696

Change-Id: Ia740045e97026c33d2be4cc40d22ccb486562c40
Signed-off-by: Katta Santhisindhu <kattas@codeaurora.org>
Merge "msm-camera: Handling multiple camera open calls properly"
msm: cpufreq: Implement suspend/resume for cpufreq driver

Cpufreq suspend variable get's updated in kernel pm notifier
callback which gets called in process context. This will create
window where cpufreq governor may try to change the frequency
before suspend variable is updated while resume.

Define suspend/resume for cpufreq driver to update suspend variable
in atomic context.

Don't update the policy->cur upon cpufreq driver failure.

CRs-fixed: 423791
Change-Id: Id78705f5c3b8bf801c6253e9362299280903769f
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
Signed-off-by: Goberu Gopal <ggober@codeaurora.org>
(cherry picked from commit d39b199d76430d2fc341bb4e63338eb31fb408cd)
Merge "msm: cpufreq: Implement suspend/resume for cpufreq driver"