M2: otg: fix runaway wakelock

When booting with wall-charger plugged-in state machine transitions to
STATE_B_PERIPHERAL (B_SESS_VLD bit is set in msm_otg_init_sm).

Aftr uplugging, bit is not cleared, and state machine never transitions
to IDLE, consequently msm_otg wakelock is never unlocked.
msm: kgsl: Optimize clock call order

Eliminate the possibility of duplicate RPM calls while using
set_rate in addition to prepare/unprepare.

Change-Id: I74905c2f79b7f78047798b6e8022ded2fce5bf33
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
msm: kgsl: Reduce cmd buffer size for adreno_iommu_setstate

Command buffer of size 250 is not required in adreno_iommu_setstate.
Reduce the size to 230 to prevent a big stack frame.

Change-Id: I92bbbce67014255c9e22875491fb4bab64d83766
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
msm: kgsl: Change bus frequency before GPU frequency

On frequency increase the GPU may be able to overflow the
bandwidth it has requested.  Increase the bus first to be
sure that isn't an issue.

Change-Id: Ief21ce5263196e0e0c537901c91986b178fb8910
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
msm: kgsl: initialize kgsl_sync_timeline_ops properly

Signed-off-by: Iliyan Malchev <malchev@google.com>
mm: change read ahead to 256
M2: regulators: fixup: make RPM_VREG_ID_PM8921_S2 regulator sleep_selectable

M2: ATT: Increase frequency for RPM_VREG_ID_PM8921_S2 regulator to 2.4

(same as in stock. ATT specific change is forced in rpm-regulator.c)

Change-Id: Ib351f8f75437e85fb50ba166dcaf887fac042df5
mm: optimize Kernel Samepage Merging(KSM)
mm: Adjust dirty writeback for IO boost
Added some defconfig optimizations