cpufreq: add generic get_cpuidle_time

Easier to maintain this in one place.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
mach-msm: disable kernel-side mpdecision

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
arm: add own hotplug driver

Simple SMP hotplug driver, based on @franciscofranco implementation.

For now without the suspend/resume logic, since this needs
to be redone.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
various log cleanups

Signed-off-by: Blechd0se <alex.christ@hotmail.de>

Conflicts:
	drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c
hotplug: delete deprecated earlysuspend handler

There is no proper support of earlysuspend in this kernel,
so better delete this stuff until there is a better option
available.
Also adjusting a few tunables.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
hotplug: add tunable sysfs entries

Allowing to change the current sampling_rate as well
as the first threshold (single core) and second threshold
(all cores).
Actual path will be: /sys/kernel/hotplug_control

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
hotplug: remove single_core_load and all_core_load

Those sysfs caused instability, which is something i don't want.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
hotplug: delay initial workqueue start

By delaying it a bit, we workaround some kind of
race condition. Enabling effectively four cores
during boot might be a good idea anyway.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
hotplug: fix core 4 would eventually not go down

We only check if our current cpu is online, not thinking about
which position it might be currently. This would result in a very
long uptime for the fourth cpu even when there is zero load.

The solution is actually pretty simple; we just check every case
and offline accordingly to that. Also reducing the overhead of the
driver a bit and cleaning up unneeded stuff.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
deadline: allow zero ms latency

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
defconfig: set deadline by default

Signed-off-by: Blechd0se <alex.christ@hotmail.de>

Conflicts:
	arch/arm/configs/msm8226_defconfig
cpufreq: interactive: fix compiling issues

This commit is just some sort of placeholder during the
merging prcess. The complete logic will be replaced later.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>