cpufreq: Add cpu utilization statistics to aid decisions made by userspace.

Understanding system load as seen by cpufreq can help userspace
algorithms make better decisions to improve system responsiveness.
One such example would be the MP decision algorithm which mines
various system info to make decisions on hotplugging in/out
the additional cores.

Change-Id: I277db7e1a7803a3822b61e7befa25131487cfe17
Signed-off-by: Anitha Anand <anithas@codeaurora.org>
msm_serial_hs_lite: Read back the NCF register after writing

The UARTDM core requires that the NCF value be read back
after being written to avoid data from being dropped from
the TX queue.

Change-Id: Ia8e9c85982d032ff5b1ca95d2a78c9827a8cbe37
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm_serial_hs_lite: Refactor wait_for_xmitr

Remove the second argument to wait_for_xmitr in preparation
for further refactoring of the console code, and because
all call sites wait for the same status bit.

Change-Id: I1688e2bc5048439a98dda7550b43ceaaaa84d437
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm: timer: move get_sclk_time prototype into ifdef

Fix a compile error when CONFIG_ARCH_ARM_TIMER is turned on and
get_sclk_time is used.

Change-Id: I4303974491cbf1030e1fe8663f7d76ebae3cf246
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Asoc: msm: Configure sampling rate to 48KHz for quad-mic topology

Quad-mic calibration data is based on 48KHz instead of 16KHz, so
making change to use the default ADM COPP rate which is 48KHz when
multi-channel ADM open function is called

Change-Id: I0d9a9b6f1197e4c034920f534f9e7db7d8aac41f
Signed-off-by: Jay Wang <jaywang@codeaurora.org>
msm: 8930: update RPM ID with support for DMM.

The DMM resource IDs are used by RPM to toggle memory power state.

CRs-fixed: 347252
Change-Id: I06bf409e58f908492ebc2cd8e532a3a0b20fff99
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
msm-fb: display: Reducing the display wake up time

100 msec sleep in phy init delays system wake up. Using usleep instead of
msleep to optimize it.

Change-Id: Ibdbb771145210c9462aa68543024be2ae797be4f
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: kgsl: Report error if regulator enable fails

In function kgsl_pwrctrl_pwrrail check if call to enable the
regulator fails or not and report an error message on failure.

Change-Id: Ib729bbbeb544c572f1d43771e5777a951346e876
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
msm: camera: Adjust exposure under low light for Snapshot

When input line count exceeds max_line count then
max_line count is written for frame lenght lines.

Change-Id: Id7d5f57e3f88979171aa03109d2fd770c9a186a8
Signed-off-by: Praveen Ac <praveenac@codeaurora.org>
msm: camera: Change OV2720 sensor register setting

Change OV2720 sensor register setting
1) to turn off auto white balance
2) to get 90 fps by changing internal clock configuration

Change-Id: Ifb11edbc543cc6ac87109007453909b12b860b99
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
radio: iris: Add calibration mode

Do not queue the FM enabled/disabled events
while calibration is in progress

CRs-Fixed: 358229
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
Change-Id: I02ee9c095d9d242de0610b210ae4e5d328e0afa8
msm: camera: add check for null queue pointer

crashes are possible without the
null pointer check for 'queue' in msm_open

Change-Id: I8c049ff1f3df092c36aec8696bfbef604ed2b99a
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
msm: camera: Remove subsystem_map header

The old subsystem_map APIs are being deprecated. The
msm_subsystem_map.h header file used to have definitions for
iommu domains. Remove this header file and include iommu_domains.h
to get the necessary iommu definitions.

Change-Id: I417a357789a8fea16bbadd98663a8ebe873ff4e7
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
ASoC: wcd9304: Fix wrong sample rate issue in RX2/RX3 channels

The default value of RX2/3_B5_CTL is wrong and resulting in wrong
sample rate playback for headphone.

Change-Id: Idf7d9bce1ee344677c48353fb3fe6a8f8bcc42ab
CRs-Fixed: 361414
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
media: dvb: mpq: Support get-capabilities API

Provide dvb-core with implementation of get-capabilities
API so that applications can query actual demux
capabilities based on the underlying HW

Change-Id: Ic05f496bdb87909c898c8cf1bbf372dc78ddbf71
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Bluetooth: Check for NULL pointer dereference

The fix in commit ff9718f8254b96dc313dd998c195c1c3769417ba was not
complete.  In l2cap_logical_link_complete the socket pointer was
dereferenced in two places, the previous fix only handled one of
the locations.

This fixes an infrequent crash when performing OPP or FTP transfer
over AMP (Bluetooth 3.0+HS).

Change-Id: I730a503b143723ffff1765602151d66fe87103da
CRs-fixed: 360758
Signed-off-by: Peter Krystad <pkrystad@codeaurora.org>
msm_fb: display: Register MDP fault handler with IOMMU driver.

MDP fault handler will print minimum information on display related
page faults and its registered with the IOMMU driver handler.
This is to minimize logging when a series of faults are seen to cause
watchdog bark.

Change-Id: I7728e8265cad8f2b506f1ec7f71309ccdcb804a2
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
tty: n_smux: Fix scheduling while atomic issue for ldisc open/close

Unlock spinlock when calling platform_device functions during line
discipline (ldisc) loading an unloading.

This fixes a potential scheduling while atomic condition if the platform
device code needs to allocate memory.

Change-Id: I7dbf15dc62b2276393272392a038c1d846ea2419
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
PRNG: defconfig: Enable PRNG

Update defconfig file to enable PRNG on copper

Change-Id: Ic21528b73a45432f0d8627a77ad9b263d72f8540
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
msm: sps: add input checking for SPS APIs

Check the input values for the arguments of SPS APIs to make sure
they are vaild.

Signed-off-by: Yan He <yanhe@codeaurora.org>