Revert "fix build with Linaro GCC 4.9.1"

This reverts commit 1c2e2d7b4fb087d0284e686833d0cfa069d68f21.
fix build with GCC 4.9.1 (m4)
3.4.92 -> 3.4.93
msm: dma: Moving queue_work() function within spinlock

Currently we are adding a dma command to the staged list with in a
spinlock and then adding to workqueue using queue_work after unlocking
the spinlock. With this there is chance of executing DMA commands in out
of order in below concurrency case.

Tread1                                Thread2
__msm_dmov_enqueue_cmd_ext
   spin_lock_irqsave(..)
   list_add_tail(..)
   spin_unlock_irqrestore(..)
       --PREEMPT--
                                      __msm_dmov_enqueue_cmd_ext
                                         spin_lock_irqsave(..)
                                         list_add_tail(..)
                                         spin_unlock_irqrestore(..)
                                         queue_work()
                                         ..
   queue_work()
So adding queue_work with in spin_lock will make sure that the
work added in the work_queue is processed in the same order as they
are added in staged_commands.

CRs-Fixed: 423190,669409
Change-Id: I2ffd1327fb5f0cd1f06db7de9c026d1c4997fe4d
Acked-by: Gopi Krishna Nedanuri <gnedanur@qti.qualcomm.com>
Signed-off-by: Utsab Bose <ubose@codeaurora.org>
Signed-off-by: Vijay Kumar T M <vtmuni@codeaurora.org>
msm: kgsl: Add the buffer user address to the debugfs memory list

For each buffer in the debugfs memory list print the address it is
mapped to in the user process.  This is useful for matching up the
user side allocations with what the kernel thinks it has.
msm: kgsl: use %pK to restrict printing GPU / memory addresses

Use %pK in the output for the per-process memory dump to keep from
printing the GPU and user memory addresses for the GPU memory
objects own by the process.  This allows us to make the 'mem' file
world readable without exposing any really dangerous information.
drivers:i2c: update i2c-qup driver from HTC M8 g278eae8
prima: Get MAC address from WCNSS platform device

* Tools can set the value easily from userspace.

Change-Id: I1ec8c1e023eb1eb34b5c9e495496afabcc4bdaf1
wcnss: Configure WLAN MAC addr through user control interface

wcnss userspace service will use user control interface to configure
certain parameters required by wcnss driver. This interface is required
to configure the WLAN MAC address. These parameter was earlier written
thru module parameters from wcnss service, however that required the
wcnss userspace daemon to have the root permission.

Change-Id: I6e928a44c7f1f9ba7ab193c882bad102d8c2bd5a
CRs-fixed: 636953
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
msm: HTC: m4: Enable dynamic threshold for the light sensor

Change-Id: Ib97d366085dc69c3ebd31e885417f09cf17323d0
Revert "staging: prima: add option to read calibration data from HTC NVS"

This reverts commit 168042f1e21854b9b98832de884b0427b230439f.

Change-Id: I2fbac3af1695b0025a5063027062f42424820476
msm: kgsl: Cleanup the memory free list

Tighten up the memory free list code and remove the memory unused
debugfs file.  Outside of the cleanup the functional changes are
a) move the mutex to a spinlock for speed, and b) only return the
last entry in the list for given pid/gpu address combination.

Conflicts:
	drivers/gpu/msm/kgsl.c
	drivers/gpu/msm/kgsl.h
	drivers/gpu/msm/kgsl_debugfs.c
	drivers/gpu/msm/kgsl_iommu.c

Change-Id: Ic0dedbad9595302e2b42de2807fa82c425d1717f
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Gaurav Gagrani <ggagrani@codeaurora.org>
Makefile: re-add JustArchi GCC flags.
except -ftrace (to keep the kernel a bit smaller) and -fdata-sections (reboot issues)

ref commit: https://github.com/JustArchi/android_build/commit/8e1b82c082a8de9160e6c0fc3ded37b591c3e517
sched: Set MC (multi-core) sched domain's busy_factor attribute to 1

busy_factor attribute of a scheduler domain causes busy CPUs (CPUs
that are not idle) to load balance less frequently in that domain,
which could impact performance by increasing scheduling latency for
tasks.

As an example, consider MC scheduler domain's attribute values of
max_interval = 4ms and busy_factor = 64. Further consider
max_load_balance_interval = 100 (HZ/10). In this case, a non-idle CPU
could put off load balance check in MC domain by 100ms. This
effectively means that a CPU running a single task in its queue could
fail to notice increased load on another CPU (that is in same MC
domain) for upto 100ms, before picking up load from the overloaded
CPU. Needless to say, this leads to increased scheduling latency for
tasks, affecting performance adversely.

By setting MC domain's busy_factor value to 1, we limit maximum
interval that busy CPU can put off load balance checks to 4ms
(effectively 10ms, given HZ value of 100).

Change-Id: Id45869d06f5556ea8eec602b65c2ffd2143fe060
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
msm: HTC: elite: Make private members static

Change-Id: I71592e880cd38c6913bdcbb0cfa85d427c2f8158
Revert "ville: Split display on code"

This reverts commit 306d6cd2dc110575871969baf7145ed5fc73d7f4.

Change-Id: I0150e426010cf13287727b90bfcc31e0592caf61
input: touchscreen: synaptics_3k kconfig: skip fw condition timeout

Add an option to skip the fw condition timeout.

Change-Id: I4e25bc48dc7eed87799aa1bd6843a6540753e541

Conflicts:
	drivers/input/touchscreen/Kconfig
msm: HTC: fighter: disable synaptics ts fw timeout

This firmware timeout causes touchscreen to often not work in recovery.

Change-Id: I72a95130aa3591627b1282f3ad0ab351a26bf032

Conflicts:
	arch/arm/configs/fighter_defconfig
input: r3gd20: Update R3GD20 gyroscope driver

* HTC kernel version: m7stock_3.4.10-g1a25406

Change-Id: I476a98a6ce1491ac871698f53387f37b14b57210
input: mpu3050: Update HTC version of MPU3050 sensor

* HTC kernel version: m7stock_3.4.10-g1a25406

Change-Id: I0c961cb03a7a1d90fe1f3bfc2a3568cc63819049