Intelli Thermal driver: switch to local CPUFREQ Limit control.

Remove msm_cpufreq_set_freq_limits and register with
CPUFREQ_POLICY_NOTIFIER to get immediate update on cpu frequencies
as long as a cpufreq_update_policy is called. Ensure that when
cpufreq_update_policy is called, cpu will not be hotplugged by
calling get_online_cpus().

Change-Id: I802d51ad1c352a19d2e456f9f6a89f8d5b89aad8
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
Small cleanup in thermal driver.
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>
msm: thermal: Update thermal sysfs nodes permission

Update the permissions of the sysfs nodes exposed
by the kernel thermal monitor.

Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
intelli_plug: Simplify mp_decision

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>
Intelli Thermal Control by faux123, independent freq limit control!

*Fixes for schedule_delayed_work, it's bad to start as 0 delay.
*Tuned max temp and cooldown range.
*Replaced __cpuinit with __ref
*Added debug switch on/off
*Fixed no mutex locks when was needed.

Merged updates from Myfluxi source.
Default Intelli Thermal (merged with original) fixed derps + work delay.