Revert "intelli_plug: intelligent hotplug cpu driver with eco mode"

This reverts commit 5b05a02e68cf5cfa0e9d5863def604c198f6cae0.

Change-Id: I4cd0c73ffe536eeb9449915dbae07647873e9d7b
Revert "Revert "intelli_plug: intelligent hotplug cpu driver with eco mode""

This reverts commit 78c483051438c802ac993cb8590e9121eba760c6.

Change-Id: Id1bc4f53cf7cb551c1810319be33a6dcc948117e
Rebase intelli_plug

Change-Id: I0ec50bd700fa527e5f40f1384f407495406f60d2
sched/cpuidle: reduce IPI storm. Backport upstream 3.16 scheduler updates

Change-Id: I37cfb60788b0d9b31a922b9fcdc72b2cb4975a9b
Squash intelli_plug v3.8

intelli_plug: add profiles support and misc code optimization

bump to version 3.0

Signed-off-by: Paul Reioux <reioux@gmail.com>

Intelli_plug: kernel sched/core: add per cpu nr_running stats

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: use per cpu nr_runnings stats for unplugging cores

bump version to 3.1

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: allow cpu_nr_running_threshold to be user adjustable

bump version to 3.2

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: tweak cpu_nr_running threshold

and fix minor logic issues

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: remove legacy msm_rq based code

just use the original algorithm based on nr_running_stats

bump version to 3.3

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: add nr_running_thresholds based on thread capacity of SOC type

instead of hard coded nr_running_thresholds, perform compile time calculation
of thresholds based on thread capacity of SOC types.

bump version to 3.4

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: misc minor code fixup post 3.4 update

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: add automatic dual-core initializations

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: deprecate eco mode. replaced by built-in profile

bump version to 3.5

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: add eco-extreme profile for more dual core use options

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: post 3.5 tweaks and code clean up

bump to version 3.6

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: move to its own directory. It's been cross platform for a while

intelli_plug driver has been working on OMAP44xx, TEGRA 3, Exynos and
MSM Krait/Cortex multi-core SOCs.  So it doesn't make sense to patch on a per
SOC basis, move it to its own ARM platform independent folder so patches can
apply to all supported ARM platforms

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: unify powersuspend and earlysuspend drivers

also minor clean up on the persist logic

bump to version 3.7

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: adjust thread capacity for Cortex A7 SOCs

Cortex A7 is much weaker than Krait processors

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: fix thread capacity threshold calculation

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: fix logic error for eco mode profiles

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: only apply suspend/resume logic if active

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: fix incorrect cpufreq API usage

This resolves the wakeup kick and screen off max issues

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: initialize ip_info struct element during driver init

this will eliminate race issues

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: use primary CPU's info data for non-boot cpu's settings

Async CPU design has caused quite a bit of grief for controlling cpu
frequencies

bump to version 3.8

Signed-off-by: Paul Reioux <reioux@gmail.com>

intelli_plug: older Qualcomm kernel compatibility fixup

ARGH... really angry at CAF code.

some cpufreq driver APIs are incredibly unstable with some of the older
MSM kernels.  The correct way is the fix the cpufreq drivers, but there are
tons of variations out there, so rather than depending on a fix, make
intelli_plug more universal by avoiding the troubling APIs altogether

Change-Id: Ib9aba3ced7ef8ff832174cc8ed094e9287de9bb5
intelliactive: rework input register/unregister

Change-Id: Ifc11463ed591332b94f6713f1d255bba03aa98fd
Revert "Revert prior f2fs driver and squash CM updates"

This reverts commit 2b49543c5359050dbdf1dd7e1580d34ee46a35ac.

Change-Id: If5df7ec689b042bd364ae459a46d2902dd15e809
Revert "Rebase intelli_plug"

This reverts commit 5d4281849b616932cc64f6de101a4fc15fdc65fb.

Conflicts:
	arch/arm/hotplug/intelli_plug.c
	arch/arm/mach-msm/Kconfig
	kernel/sched/core.c
	kernel/sched/sched.h
Revert "Squash intelli_plug v3.8"

This reverts commit a2c2ee566bb0d938c72e70a4f6c1df11c75c590b.

Conflicts:
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/intelli_plug.c