drivers: msm: fix after d2 merge

Change-Id: Ib491ea035521702c490e49134f852dddafc377dc
driver: gpu: msm: fix build without msm_iommu

Change-Id: Ifee1a5df20324db1c0867dcb8caa36a34a4926da
Revert "video: msm: Allow MDP to use max clock rate"

 * This rate isn't supported on 8960.

This reverts commit b8233634ba460180300546b4a51ead4a4c6f095a.

Conflicts:
	arch/arm/mach-msm/board-8960-display.c

Change-Id: Ic1eaf17e84ccae8447975fc2bf4b8b4ed85cdaee
ARM: Fix deadlock scenario with smp_send_stop()

If one process calls sys_reboot and that process then stops other
CPUs while those CPUs are within a spin_lock() region we can
potentially encounter a deadlock scenario like below.

CPU 0                   CPU 1
-----                   -----
                        spin_lock(my_lock)
smp_send_stop()
 send_IPI               handle_IPI()
                         disable_preemption/irqs
                          while(1);
 <PREEMPT>
spin_lock(my_lock) <--- Waits forever

We shouldn't attempt to run any other tasks after we send a stop
IPI to a CPU so disable preemption so that this task runs to
completion.

Change-Id: I528af0b4448433bd9d6ca12d6a0e2c422a55d4be
CRs-Fixed: 396169
Reported-by: Sundarajan Srinivasan <sundaraj@codeaurora.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
ARM: Fix negative idle stats for offline cpu

We see negative idle stats because of cpu dying without
cleaning up idle entry statistics. When a cpu is offline,
the most immediate thing you'd want to do is just call
into cpu_die() and not waste time calling notifier(IDLE_START).

CRs-Fixed: 414554
Change-Id: Iadc6a3ca39997e0ccf65d2a29b004e24b1b211a1
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
msm: kgsl: Set requested power state to NONE after resume

When GPU resumes from suspend requested state is not cleared to NONE.
Due to this idle reporting is not done and GPU stays at MAX freq. As
a fix if the current power state is already ACTIVE and request is
made for active power state then clear the requested state immediately.

CRs-fixed: 424682
Change-Id: I7f0d7fa819308f166cbbbf30b2c20aee73644cfb
Signed-off-by: Vinay Roy <vroy@codeaurora.org>
msm_fb: display: Revert 'add dcs command list for dsi command mode'

Reverts portion of the code in mipi_novatek.c
Duplicated code breaks the compile

Change-Id: I655299cf84658217dc4edbebfd1418a553720898
msm: clock-8960: update clocks for jb_mr1_chocolate

Change-Id: I9f6a56f9ef47a8bb5181a830b90b1319e3a8033c
msm: HTC 8960: pre-allocate wncss memory

Change-Id: Iaa3d732db782934efabb0f2ab3087d3bf1ca6ed8

Conflicts:
	arch/arm/configs/elite_defconfig
	arch/arm/configs/ville_defconfig
msm: HTC 8960: enable timer syscall

Change-Id: Iaefebf1a8ea4dd2df98bcb538470abff63a14579

Conflicts:
	arch/arm/configs/elite_defconfig
	arch/arm/configs/jet_defconfig
	arch/arm/configs/ville_defconfig
msm: HTC 8960: enable SW sync driver

Change-Id: I858ae77b8466a912f16a3853369bea7378853ef9

Conflicts:
	arch/arm/configs/elite_defconfig
	arch/arm/configs/ville_defconfig