msm: camera: sensor: Update to use wait_for_completion.

Use wait_for_completion in place of wait_for_completion_interruptible

Change-Id: I960b334128e2b811b27c64721a65f7c7e773b085
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
msm: rq_stats: Use cpufreq API to get the current frequency

Since the acpuclock APIs are deprecated, use the cpufreq to
get the current frequency of CPUs to calculate the cpu
normalized load value.

Change-Id: I6e381d584d6725ef964bad86c835d44f3046e9c3
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
msm: rq_stats: Fix wrong usage of cpufreq_quick_get()

cpufreq_quick_get() returns frequency in KHz, which is exactly what
cur_freq expect. Remove the wrong multiplication.

CRs-fixed: 645518
Change-Id: Ia8b080a188023964f5eee77c8586828097d11ad4
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
ARM: dts: mdss: Increase MDSS clock hysteresis cycles for msm8226

Increasing the number of cycles of MDSS clocks to stay active for
an additional 32 cycles before gated off.

Change-Id: Ia98b9d98ca59fd7bed408c775d8f58d35e6df5bb
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
msm: vidc: Validate userspace buffer count

Makesure the number of buffers count is less than
the maximum limit to avoid structure overflow errors.

Change-Id: Icf3850de36325637ae43ac95f1c8f0f63e201d31
CRs-fixed: 563694
Signed-off-by: Pachika, Vikas Reddy <vpachi@codeaurora.org>
msm: ocmem: Call restore_sec_config() after every power collapse

As the QRIB is enabled, after every power collapse of ocmem, the
QRIB is reset to the maximum security state. Due to this the apps
processor cannot access the ocmem register space.

The restore_sec_config() scm call needs to be called before any
register is accessed after a power collapse to ensure that the
security configuration is restored. The clocks need to be turned
on before every call that is made into TZ to ensure that there
is no power collapse.

CRs-Fixed: 651324, 660089
Change-Id: Ieb6b635142057e219de29e811c93749f6500cec5
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
wcnss: Reset IRIS card before Starting IRIS XO configuration

Set iris_reset bit of PMU CFG register to reset the IRIS
card before Starting IRIS XO configuration.

Change-Id: Id1cfd7e3e3df29919089725b2233c6f95afbbfb5
CRs-Fixed: 664642
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
Merge "msm: ocmem: Call restore_sec_config() after every power collapse"
Merge "Merge "msm: vidc: Expose extradata size to userspace""
Merge "msm: rq_stats: Use cpufreq API to get the current frequency"
Merge "msm: rq_stats: Fix wrong usage of cpufreq_quick_get()"
Merge "ARM: dts: mdss: Increase MDSS clock hysteresis cycles for msm8226"
Merge "Merge "Merge "msm: vidc: Expose extradata size to userspace"""
Merge "Merge "ARM: dts: mdss: Increase MDSS clock hysteresis cycles for msm8226""
Merge "msm: vidc: Validate userspace buffer count"
Merge "Merge "Merge "ARM: dts: mdss: Increase MDSS clock hysteresis cycles for msm8226"""
Merge "Merge "msm: vidc: Validate userspace buffer count""
Merge "Merge "Merge "msm: vidc: Validate userspace buffer count"""
Merge "Merge "msm: vidc: Validate userspace buffer count""
Merge "wcnss: Reset IRIS card before Starting IRIS XO configuration"