msm8974: Adapt memutils optimizations from msm8960pro

Preload farther to take advantage of the memory bus, and assume
64-byte cache lines.  Unroll some pairs of ldm/stm as well, for
unexplainable reasons.

Future enhancements should include,

- #define for how far to preload, possibly defined separately for
  memcpy, copy_*_user
- Tuning for misaligned buffers
- Tuning for memmove
- Tuning for small buffers
- Understanding mechanism behind ldm/stm unroll causing some gains
  in copy_to_user

BASELINE (msm8960pro):
======================================================================
memcpy 1000MB at 5MB       : took 808850 usec, bandwidth 1236.236 MB/s
copy_to_user 1000MB at 5MB : took 810071 usec, bandwidth 1234.234 MB/s
copy_from_user 1000MB at 5M: took 942926 usec, bandwidth 1060.060 MB/s
memmove 1000GB at 5MB      : took 848588 usec, bandwidth 1178.178 MB/s
copy_to_user 1000GB at 4kB : took 847916 usec, bandwidth 1179.179 MB/s
copy_from_user 1000GB at 4k: took 935113 usec, bandwidth 1069.069 MB/s
copy_page 1000GB at 4kB    : took 779459 usec, bandwidth 1282.282 MB/s

THIS PATCH:
======================================================================
memcpy 1000MB at 5MB       : took 346223 usec, bandwidth 2888.888 MB/s
copy_to_user 1000MB at 5MB : took 348084 usec, bandwidth 2872.872 MB/s
copy_from_user 1000MB at 5M: took 348176 usec, bandwidth 2872.872 MB/s
memmove 1000GB at 5MB      : took 348267 usec, bandwidth 2871.871 MB/s
copy_to_user 1000GB at 4kB : took 377018 usec, bandwidth 2652.652 MB/s
copy_from_user 1000GB at 4k: took 371829 usec, bandwidth 2689.689 MB/s
copy_page 1000GB at 4kB    : took 383763 usec, bandwidth 2605.605 MB/s

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:
	arch/arm/lib/Makefile

Change-Id: I0f0121476f2743d1f7d84af89e23552ba953c1ed
msm8974: Adapt memutils optimizations from msm8960pro (part 2)

Conflicts:
	arch/arm/mach-msm/Kconfig

Change-Id: I22e0ba791fabb8ae34cbcadeed73b12ea21a6238
Add memory optimizations to defconfig

Change-Id: I28e86e61a913f04d078930f24ca83d9b59ac0dda
added initial patches for GammaControl (currently not working) [thanks to @nikhiljan93]

Conflicts:
	arch/arm/configs/yuga_defconfig
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile

Change-Id: I15fe1e564c24b97d27340ae9a0f4a726d072075f
some more fixes for gamma control

decouple this from LGE

Conflicts:
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile

Change-Id: Icf503b3ed40583816402e06b08a2b93c8e7af08c
some more fixes for LCD_KCAL

Conflicts:
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile

Change-Id: Ic46262a7c332687cfa31d36fa622821433a9e8e9
Small fixes

Change-Id: I7e556729a6a1367533083cf15c7836b7bdc01853