msm: hotplug: Add missing ifdef for mutex

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
cpufreq: cpu-boost: Implement additional checks

* Return early without calculations if last
  input_boost_work is pending.
* Disable input boost if input_boost_freq value is
  less than or equal to min possible frequency.
* Disable hotplug boost if plug_boost_freq value is
  less than or equal to min possible frequency.
* When we check for current frequency greater than
  boost frequency, also check if boost is removed
  properly or not. If not, do so.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: hotplug: Shrink ifdef usage

* There is no functional change in this commit.
* Add #ifdef wherever required for compilation.
* Shrink where it is already used.
* Reposition suspend_defer_time attribute.

https://github.com/dorimanx/Dorimanx-LG-G2-D802-Kernel/commit/0610ec687e802bc1f2ca94acc6ff19565a202d41

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

Conflicts:
	arch/arm/mach-msm/msm_hotplug.c

Signed-off-by: renderbroken <zkennedy87@gmail.com>
Revert "tokenring: delete all remaining driver support"

This reverts commit d59cc7a047fcd5f32f089dee73894d8d75f2b352.
Revert "msm: kgsl: Add new API's to track device mutex owner" Missed Merge?

This reverts commit 04925f285206b2c2795c6c16dfc1f9a6d29a5426.

Conflicts:
	drivers/gpu/msm/adreno.c
	drivers/gpu/msm/kgsl_iommu.c

Signed-off-by: renderbroken <zkennedy87@gmail.com>
Revert "Disable SCHED CORE Trace CRAP."
More work than I am rady to tackle at this point :)

This reverts commit ffe77c09a136a1e9615577f5c3da6a42e7e1eeb3.
proximity: power off the sensor if dt2w/s2w is disabled
input: declare variables dependant on s2w/dt2w when the features are disabled
dt2w: enable by default
msm: keep 2 cores active when the screen is on

Powering on a CPU implies more than just giving the system more computing power.
The machine needs to be stopped for a very short moment to migrate threads to the
new CPU. Hotplugging a CPU back and forth creates overhead because of this migration
that costs time and computing power. This makes fast hotplugging routines like input boosting
pretty much worthless.
It's better to keep 2 cores active when the screen is on so the threads can be divided fairly
between them.