msm: spm: Add barriers to flush writing to SPM registers

Ensure that SPM registers are written to before returning from
functions.

(Cherry-picked from 8f9218956013752b2fbca905fdf2cd8c11886282)

Change-Id: Idb3db582704017e0548884a9a300d3677c99f76e
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
msm: dsps: Add dsb() for IO operation ordering.

Add dsb() after writel() to make sure write is commited
before the function returns.

Change-Id: I1208de71c71c43ae04b6332f11877e237b174c18
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Revert "fs: yaffs2: Revert to older version"

This reverts commit 4c3fda289a8bbb46d4b31867085383ae808d867d.

Testing has shown this change is not necessary on the current
tip.

(cherry picked from commit d5f0c84df23717a67775a4f43f081694a8528708)

Change-Id: Ic4e93f809eecb9e4cd0c06469da68942a5a79071
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
msm: 8660: Add barriers to SMP boot code

Add barriers to the SMP boot code to ensure ordering of
I/O operations.

Change-Id: Iad5bbe08be4884782f09ab3d10e7092adc374b7b
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
vidc: 1080p: Return proper value in client_fatal_cb

Change-Id: Ife6a3d1284c475b6247e08125673ebc4e6722aaa
Signed-off-by: Ashray Kulkarni <ashrayk@codeaurora.org>
CRs-fixed:287786
msm_fb: display: add memory barrier to mdp

Add wmb() to enforce mdp registers are updated before kickoff.
Also add dsb() to mdp_pipe_ctrl() to make sure mdp register
updates had been finished before shut donw mdp clock.

Change-Id: I4f49a5f6e6ad669d267379345632ad7edd3ee0c3
Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org>
msm: peripheral-reset-8x60: Add PXO proxy vote for modem.

The modem PLL runs off of PXO. So have the PXO forced on till the
modem can manage it on its own.

Conflicts:

	arch/arm/mach-msm/peripheral-reset.c

(cherry picked from commit 2663d6b55205026d36c27712b85e4dd70eb88b99)

Change-Id: Iff77a3ac3fad0a607618b66824d76d52c5fb7a7a
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
msm: audio: qdsp5v2: Check for AFE module before acquiring AFE task

Need to check the afe module status if it is enabled earlier.
Before acquiring the AFE task

CRs-Fixed: 287936
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
(cherry picked from commit 0b0e3911779cf2429621e07e9f3e1a9152003b4f)

Change-Id: Ic2f758a8060df193982a94308aefd98188ea8482
Signed-off-by: Sunil Joseph <sunilj@codeaurora.org>
Merge "msm: peripheral-reset-8x60: Add PXO proxy vote for modem." into gingerbread_rel
sched: Fix 8660 fast scheduler domain update

Fix issue with earlier fast scheduler domain changes to
MSM8660 where tasks may be stuck to only a single CPU
when the other is available.

The reduction of 2nd CPU uptime with the fast scheduler
change for MSM8660 drops from ~100ms to ~58ms.

CRs-Fixed: 286438
Change-Id: Ibfa634a0c2417959f7a99f82f5a99ed781e66a4d
Signed-off-by: David Ng <dave@codeaurora.org>
Merge "msm: audio: qdsp5v2: Check for AFE module before acquiring AFE task" into gingerbread_rel
defconfig: Automatic update

(cherry picked from commit ab32241807a6aa9528dca95f94eac6ea1718c133)

Conflicts:

	arch/arm/configs/msm7627a_defconfig
	arch/arm/configs/msm8960_defconfig

Change-Id: Ia603a261f3fd1be9d900fb7853cdb9b69f95cbe9
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Signed-off-by: Jessica Gonzalez <jgaona@codeaurora.org>
msm: Enable YAFFS_DISABLE_TAGS_ECC

This feature is required for the current version of yaffs2.

Conflicts:

	arch/arm/configs/msm7627a_defconfig

Change-Id: I7eeccb4d4dee98cde037c352246e742898ed8c68
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Signed-off-by: Jessica Gonzalez <jgaona@codeaurora.org>
Merge "Revert "fs: yaffs2: Revert to older version"" into gingerbread_rel
Merge changes I7eeccb4d,Ia603a261 into gingerbread_rel

* changes:
  msm: Enable YAFFS_DISABLE_TAGS_ECC
  defconfig: Automatic update
msm: timer: mask interrupts in set_mode

Previously the timer could wrap around and wake us up out of suspend,
since the timer interrupt has no interrupt enable bit to stop it from
triggering on the match value. So, explicitly mask and clear this
interrupt  when we suspend. There is no generic api for this, so call
irq_chip functions directly.

(cherry picked from commit 1994ba1c5a6f9df01bed81a7cc6318f73c4ea492)

Conflicts:

	arch/arm/mach-msm/timer.c

Change-Id: I2c9ab3904b87f621abfb4a0156100a3d93426946
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Jessica Gonzalez <jgaona@codeaurora.org>
SMP: Dont send reschedule ipi to an offline cpu

There could be cases when a smp_send_reschedule() is called upon
cpu that is offline.

Check if the cpu is offline and if so WARN about it.

(cherry picked from commit ac3fd16e2b0b38c0695a3997b220fa551a9f09eb)

Conflicts:

	arch/arm/kernel/smp.c

Change-Id: I58fac07cf1289aad137b4259ce83d06f0117fd62
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Jessica Gonzalez <jgaona@codeaurora.org>
AndroidKernel.mk: install kernel modules to target filesystem

Install all in tree kernel modules to /system/lib/modules on the
target using make modules_install to avoid maintaining a list of
copy rules for each modules. Modules are moved to /system/lib/modules
to make the module path fixed for easier maintainance in other files
using modules. All other non-module files are cleaned.

(cherry picked from commit 413b99ccf534e504a3c555cdce527fa0e81bb0b6)

Change-Id: I3e8279d556cf199c92fe861be8dc13ee5ec64069
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
AndroidKernel.mk: remove rule to copy oprofile.ko to target filesystem

In tree kernel modules are copied to target filesystem using
make modules_install. therefore removing this individual rule
for oprofile.ko

(cherry picked from commit 442e99854e255e829233eac8bc6f9be7495ae279)

Change-Id: Ifead85ab145a8ea9823a912e2d94b7d7defd2743
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
AndroidKernel.mk: fix duplicate copies of out of tree modules

If out of tree modules are placed in sub-dirs in /system/lib/modules,
they will be moved to its top directory. Therefore, incremental builds
will result in duplicate copies of out of tree modules in
/syste/lib/modules and its corresponding sub-dirs. This change makes sure
only move in tree kernel modules from sub-dirs to /system/lib/modules

(cherry picked from commit 47bf611be317f6bcfab67b4eb0f21eee7e297dc2)

Change-Id: I149a36faa10074a853acc885ba6530ffda8db87a
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>