Revert "cpufreq: intellidemand - make active/inactive max freqs tunable via sysfs"

This reverts commit f654cc9a30b66639d89276364f2b5bf2dd22115e.
cpufreq/kgsl: activate and adjust intellidemand for new kernel
cpufreq: Intellidemand - enable smart core management while screen on

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

Signed-off-by: Emmanuel Utomi <emmanuelutomi@gmail.com>
intellidemand: adjust browsing state detection to be smarter

lower active state time from 5 mins to 3 mins
bump max frequency limit from 1.08GHz to 1.13GHz

Conflicts:
	drivers/gpu/msm/kgsl_pwrctrl.c
cpufreq: intellidemand - make active/inactive max freqs tunable via sysfs
defconfig: Define Intellidemand max clocks
cpufreq: intellidemand - make debug message to reflect actual frequencies
intellidemand: dynamic change of sampling rate based on screen on/off

using early_suspend/late_resume drivers to 2x min_sampling rate while screen
is off to reduce frequency transitions in hope to reduce power consumption
further
CPUfreq: update sampling rate without waiting for next sampling

When a new sampling rate is shorter than the current one, (e.g., 1 sec
--> 10 ms) regardless how short the new one is, the current ondemand
mechanism wait for the previously set timer to be expired.

For example, if the user has just expressed that the sampling rate
should be 10 ms from now and the previous was 1000 ms, the new rate may
become effective 999 ms later, which could be not acceptable for the
user if the user has intended to speed up sampling because the system is
expected to react to CPU load fluctuation quickly from __now__.

In order to address this issue, we need to cancel the previously set
timer (schedule_delayed_work) and reset the timer if resetting timer is
expected to trigger the delayed_work ealier.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
modified for intellidemand by faux123
intellidemand: add mutex protection around sampling rate change
Update HTC baterry driver

code taken from here : https://github.com/sultanxda/sultan-kernel-faux-seb-ION/commit/ba07546e9306d785b27f83f166074bf7bf4b299c#diff-9

Change-Id: I30c2eb1aece56d259cfc9b28ff3d9b2bf9f938bc

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

Conflicts:
	arch/arm/mach-msm/htc_battery_8x60.c
board/cpufreq: add early suspend/late resume drivers

-- cap max screen off freq
-- hotplug 2nd core when screen is off
inspired by Colin Cross's code for Galaxy Nexus kernel and Ricardo Cerqueira
for being first to port to MSM platform

Conflicts:
	arch/arm/mach-msm/acpuclock-8x60.c
	arch/arm/mach-msm/cpufreq.c
Make sure to use static instead of extern to fix some errors