intelli_plug: Further modifications for boost lock

* Add attribute for boost lock duration.
* Use optimized value for boost lock duration.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
intelli_plug: Apply boost_lock only to cpu_down

* With intelli_plug, we have cpu_up and cpu_down in single
  function.
* If we use boost_lock in same function, cpu_up is blocked
  as well.
* So separate boost_lock_check and apply it only to
  cpu_down.

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

Conflicts:
	arch/arm/mach-msm/intelli_plug.c
intelli_plug: Remove a redundant check

* We dont require to check boosted_cpus > 1
  because boosting will never occur for
  touch_boosted_cpus = 1.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
INTELLI HOTPLUG: Merge more clean and simple way to set tunnables.

Change merged from neobuddy89 source. thanks.
intelli_plug: Simplify mp_decision

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
cpufreq: cpu-boost: Unify input and hotplug boost

* This doesn't make sense to have mirror functions
  operating different boost frequencies.
* If input_boost_freq > hotplug_boost_freq, hotplug
  boost will be rendered useless in most case since
  parallel input boost will be doing it work.
* So instead having separate boost functions,
  keep only single boost function "do_input_boost"
  and let hotplug callback access this boost.
* Disable hotplug boost by default and provide
  attribute for same.

* Increased migration_load_threshold to prevent
  not-so-needed and recurring migrations.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
cpufreq: cpu-boost: Do not consider keypad events for boost

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Updated thermal code.
Update fastcharge. Thanks to Ktoonsez
Merged battery drivers with the ones existing in cm11.0

Conflicts:
	arch/arm/configs/alucard_defconfig_dbg
	arch/arm/configs/alucard_defconfig_old
Fixed battery ... previous commit.
MSM HOTPLUG: Small fixes for bail out, and last ifdef for suspend.
thermal-core: Fix invalid sensor request not accounted correctly

Add NULL check for sensor name before using it in sensor_get_id and
return NULL explicitly when sensor id is not valid in get_sensor of
thermal core.

Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Revert "cpufreq: cpu-boost: Unify input and hotplug boost"

This reverts commit 799ecb0cf0780cd2007c8855837e9fe334435211.
Fixed double declaration in scm.h
Removed useless config.
CPUFREQ: Ondemand, Remove cpu touch boost notify, as we have it in cpu boost!

Also restore some tuning to make GOV more relaxed on small load spikes!

Now MSM HotPlug also relaxed when using it with ondemand.

Conflicts:
	drivers/cpufreq/cpufreq_ondemand.c
MSM HOTPLUG: Add fast_lane_min_freq value.

This help to make fast_lane function that turn on all CORES on high load
little more smart. as small spikes on low freq can generate 100% load value
but freq is 300Mhz and we dont need all cores online!

So enable that TURBO function match only when 2 conditions!

load >= 95
cur_freq on cpu 0 >= 1728000

Thanks to @Alucard24 for help.
DEFAULT_FAST_LANE_MIN_FREQ 1350000
Tune All BLOCK govs for Android needs, and allow more write power in ROW.