Max screen off frequency and shut down cores while screen is off
msm_sleeper: added remaining code
Change msm-sleeper to use lcd-notifier
Add sysfs entry for max screen off frequency
Add BFQ/SIO/FIOPS/ZEN/VR IO Schedulers
Add BFQ/ZEN/VR IO Schedulers (part 2)
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>
msm8974: Adapt memutils optimizations from msm8960pro (part 2)
PM: devfreq: Fix simple_ondemand crashing on startup

simple_ondemands private data must be set to NULL, otherwise we would
run into a NULL pointer in kgsl_devfreq_get_dev_status().

Change-Id: I6cc6a8b11e3b58b8c3e3c26d43ee36949cf62351
update defconfig
mach-msm: Add msm_mpdecision Kconfig & Makefile hooks Also rename qcom's mpdecision to stay in place and be used if CONFIG_MSM_MPDEC is not set

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>

Conflicts:
	arch/arm/mach-msm/Makefile
mach-msm: added MP-Decision by @showp1984

squashed the following commits:
mdpec: fix missing ifdefs when compiling with earlysuspend
msm_mpdecision: opt out early if we are thermal throttled
msm_mpdecision: add locking to early_suspend related code, even if we
msm_mpdecision: fix early_suspend compilation
msm_mpdecision: add input boost triggers
msm_mpdecision: add missing #ifdefs around thermal related code
msm_mpdecision: fix boost_time not respecting sysfs changes
msm_mpdecision: also verify that boost frequencies are > minfreq
msm_mpdecision: move startdelay to init to save cycles on each work call
msm_mpdecision: early continue get_slowest_cpu() and _rate() to save
msm_mpdecision: fix whitespaces throughout the file to comply with li
msm_mpdecision: fix definitions for earlysuspend/lcd callback switch
msm_mpdecision: offload definitions to header
msm_mpdecision: remove per_cpu suspend value
msm_mpdecision: switch to lcd callback and improve sus/res code
msm_mpdecision: update inputboost frequencies
thermal/mpdec: export throttle indicator and don't input boost if we
msm_mpdecision: add fb callback, keep earlysuspend
msm_mpdecision: boost: if we are not boosted, revib_wq does not need
msm_mpdecision: fix changing boost freq sets min = boost freq
msm_mpdecision: several changes [read more]
msm_mpdecision: min_cpus & max_cpus should on/offline affected cpus
msm_mpdecision: change frequencies for input boost
msm_mpdecision: increasing the check delay to 130ms
msm_mpdecision: boost: don't schedule more check than needed
msm_mpdecision: boost: detect changed min frequency and update accord
msm_mpdecision: tune hotplug values
msm_mpdecision: input event boost: fix not resetting boost if cpu was
msm_mpdecision: add sysfs interface for input event boost
msm_mpdecision: add input event boost [read more]
msm_mpdecision: stats: if cpu is online, add current ontime to stats
msm_mpdecision: fix spacing across the whole file
Revert "msm_mpdecision: remove early_suspend, add fb callback"
msm_mpdecision: fix sleep, don't use pause
msm_mpdecision: add stats & expose to sysfs
Revert "mpdecision: don't use sleep, cancel/resume wq instead"
mpdecision: update copyright
mpdecision: checking every 100ms is enough
mpdecision: don't use sleep, cancel/resume wq instead
msm_mpdecision: tweak hotplug values
msm_mpdecision: on resume pull up cpu1
msm_mpdecision: turn on cpu1 early
msm_mpdecision: we can't turn off cpu0
msm_mpdecision: when returning from sleep, start immediately
msm_mpdecision: remove early_suspend, add fb callback
msm_mpdecision: disable debug
msm_mpdecision: various fixes and tweaks
msm_mpdecision: fix merge errors
msm_mpdecision: add get_rate()
msm_mpdecision: decrease delay between checks to 70ms
msm_mpdecision: use CONFIG_NR_CPUS for max_cpu sysfs
msm_mpdecision: add max/min cpu limits to sysfs
msm_mpdecision: use unique lock names
msm_mpdecision: cancel/resume main work thread on ES/LR
msm_mpdecision: use own workqueues
msm_mpdecision: remove useless locking
msm_mpdecision: fix disabling mpdecision over sysfs for multicore
msm_mpdecision: export the new, larger nwns/twts arrays to sysfs
msm_mpdecision: update header to include full feature list
msm_mpdecision: make earlysuspend/lateresume core independent
msm_mpdecision: don't let msm_mpdec_work_thread() run if we are still
msm_mpdecision: update core data on first call
msm_mpdecision: decrease decision delay
msm_mpdecision: decrease startup delay
msm_mpdecision: make debug output more compact & informative
msm_mpdecision: fix get_slowest_cpu()
msm_mpdecision: make msm_mpdec_work_thread() core independent
msm_mpdecision: make mpdecision() core independent
msm_mpdecision: add debug output
msm_mpdecision: fix check for khz/mhz value (idle_freq sysfs)
mach-msm: mpdecision: don't turn on cpu1 if cpu0 freq is below idle_freq
mach-msm: mpdecision: fixup: move idle block to mpdecision()
mach-msm: mpdecision: don't turn off cpu1 if freq > idle
mach-msm: mpdecision: sysfs: check if cpu is offline before hotpluggi
mach-msm: mpdecision: increase up threshold for Sense
mach-msm: mpdecision: increase start delay for Sense
mach-msm: mpdecision: allow mpdecision to be disabled (sysfs)
mach-msm: mpdecision: fix foreign cpu control detection
mach-msm: mpdecision: adjust thresholds for sense
mach-msm: mpdecision: increase startdelay for sense
mach-msm: mpdecision: remove debug output
mach-msm: mpdecision: add sysfs interface
mach-msm: mpdecision: rename msm_mpdec_suspend to msm_mpdec_cpudata
mach-msm: mpdecision: show how long the cpu was online
mach-msm: mpdecision: fix foreign hotplug/unplug detection
mach-msm: mpdecision: add email to (c)
mach-msm: mpdecision: remove up/down delay, our default delay is larg
mach-msm: mpdecision: always set the suspend var
mach-msm: mpdecision: show cpumask after up/down
mach-msm: mpdecision: don't start immediately
mach-msm: mpdecision: change early_suspend_level to blank_screen
mach-msm: mpdecision: pause if CPU is unplugged outside of mpdecision
mach-msm: mpdecision: restructure locks, add delay
mach-msm: mpdecision: add load based decision making
mach-msm: mpdecision: small cleanup
mach-msm: Add msm_mpdecision

Signed-off-by: DooMLoRD <metoo.mememe@gmail.com>
cpuinit: get rid of __cpuinit, first regexp

This commit is the result of:

find -name "*.c" | xargs sed -i "s/ __cpuinit / /g"

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
cpuinit: get rid of __cpuinit, third regexp

This commit is the result of:

find -name "*.c" | xargs sed -i "s/ __cpuinitdata//g"

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
cpuinit: get rid of __cpuinit, fifth regexp

This commit is the result of:

find arch/ -name "*.h" | xargs sed -i "s/ __cpuinit//g"

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
cpuinit: get rid of __cpuinit, some more files
defconfig: update with latest changes
build scripts: add scripts for GCC 4.9.1 Linaro Cortex-A15 optimizaed
Makefile: fixes for GCC 4.9.1 Linaro compatibility
Revert "defconfig: update with latest changes"

This reverts commit 769536fa3ab66bca53f70605a947ffd0743c5702.