MSM/INTELLI HOTPLUGS: Adapt wakeup_boost trigger. Idea by @neobuddy89

*My users reported that when suspend is OFF. screen wakeup can be laggy
as cores not boosted in that condition.
Now it's will if there is wakeup_boost need reported by cpu-boost driver.

*Set fast lane back to 99, sometimes freq jump high on all cores!
without a reason, but i know it's the fast lane function activated.

*Added __ref to prevent section missmach on resume functions.
since the cpu value is used there.
Revert "Revert "MMC upgraded, but I need to test it so I will revert......""

This reverts commit de5550e8cf8e95c5b2b87d9eeb18e3a4151cf8e2.
Fixed intelli_plug, msm_hotplug warning if LCD_NOTIFY or MACH_LGE are not defined
Removed useless code pieces. Cosmetic works.
MMC: removed obsolete function.
mm: some corrections.
zram/zsmalloc issues in very low memory conditions.
mm: swap updates!
    some corrections.
CONFIG_SCHED_MC: busy_factor to 1
CMA: upgrade from @Dorimanx branch. Enabled by default.
Kernel/* updated from @Dorimanx branch.
some little adjustments
Disabled CONFIG CMA.
updated trace
arch/arm/* updates.
kernel updates.
Revert "staging: android: Use devm_kzalloc instead of kzalloc"

This reverts commit 506d127595bbfc918c934704e7b9a9663df97566.

Dorimanx:

This cause long vibrates when typing fast, should be short every click,
but its like: short short short long, short long... etc.

not nice. now in 100 clicks 3 long vibrates, and that is OK...
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/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile

Conflicts:
	arch/arm/lib/Makefile
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile
ARM: smp: Wait just 1 second for other CPU to halt

Currently, the busyloop waiting for a 2nd CPU to stop takes about 4
seconds.  Adjust for the overhead of the loop by looping every 1ms
instead of 1us.

Signed-off-by: Chris Fries <C.Fries@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/537864
SLT-Approved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Igor Kovalenko <cik009@motorola.com>
Reviewed-by: Russell Knize <rknize2@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Removed ZRAM_FOR_ANDROID.
Added ANDROID_BG_SCAN_MEM, ANDROID_LMK_ADJ_RBTREE.
Sync lowmemorykiller with @Dorimanx branch
general fixing.