Revert "cpufreq: interactive: fix another derp, I was probably drunk when I merged the patch before."

This reverts commit 92aacff94f7f358172ddc199ee95264e3ea23810.

Change-Id: Icf5aa0ea98793b407440b290f1c8ff92d4fabc8b
Revert "cpufreq: interactive: fix derp."

This reverts commit 6302a52874567d1ce357c3ffc55bdb6077cdadc0.

Change-Id: Ie7e2bb93f43fbe967f561a6652caade08dd57d02
Revert "cpufreq: interactive: merge https://github.com/android/kernel_common/commit/4c7894cb01c7544225d5fcfb0fcb1d11fd2d1777 and fix a small code shit."

This reverts commit 8973321ffa892744e8d972497d002442e8d778ab.

Change-Id: Ia7096a572d862175418959dea3883670589f1168
Revert "cpufreq: interactive: Initialize spinlocks"

This reverts commit 1be9d4a3968d76c69cc1cc8275e0d10ff939600e.

Change-Id: Iac8c2ff81f4b639b7ee425ab1195ad974d720b82
Revert "interactive: touchboost tuning"

This reverts commit 7487ad3385dffdc5eb8da2cc9896fad8a17efda6.

Change-Id: Ic5addb91df75d23ddff66163dd1bbcdc50f34b5e
Revert "cpufreq: Fix policy getting stuck when user & kernel min/max don't overlap"

This reverts commit 060476dbdacef66510ec528021a266f8b67d73bf.

Change-Id: I335da7778b93aa3e7bb9c5dacfad9e37912e14dc
Sync Hotplug, Govs and Touch with Francokernel (reverted from commit bcfe9ec41c87623cbffca895d4d9d9e2e5e00eed)

Change-Id: If74606e315c515c187750b1c194a9f2d12a7b8b5
fix compile issues, remove CAF generic touchboost driver

Change-Id: Icef2165d1f4c7685a8bee74564702fec05ab0789
mako_hotplug: fix a small bug.

Change-Id: I3a78a52bd193ebbe9e53f9d2bf3f47f1b4cc63f7
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit 45ab74c129dd05c92c283c5d2e5f2c9ef96326d9)
mako_hotplug: fix styling.

Change-Id: Ic26777aa3d9525937b4e1386921d8522ac661f6a
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit 63dc43189b2939d12d95a8c683e3b22e2e6fad59)
mako_hotplug: simplify whole process, I was not happy with the solution of cpu0->cpu2 / cpu1->cpu3 logic. And besides it created extra overhead.

Change-Id: I40bd3ee79ce445315138fa162eaa3fc6dddf132a
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit fc1e6d99cc543cee7bff5b071575d7c4cbb296ab)
Add my Hotplug driver code. All previous commits are squashed into this version.

Change-Id: I604ceb0853f1c6444422325f11e01f4297c5a2a9
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit 231e9785339d227a0f91c1e19a88148e54c5db05)
intelli_plug: intelligent hotplug cpu driver with eco mode
Signed-off-by: Paul Reioux <reioux@gmail.com>

Change-Id: Iac235cd7d74160b2130f9eee8700c98e54519a5c
intelli_plug: tweak for faster wakeup from suspend

bump version to 1.1

Change-Id: I638b9ac37f4d228c71105445416a3e3a99604a28
Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: increase cores on persistence

also replace hardcoded values with Macros for ease of updating later

Change-Id: I362b191f3cb6777f6200b37d05f64e3946c38c56
Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: make it gcc-4.6.x eabi compatible :p

Change-Id: I5eba337ea6e7e729eed2e73a158a8532554f5083
Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: use rq_stats to help detect artificial or constant loads

benchmarks often create fake / artificial loads at a constant rate.  These
type of loads are not detected corectly by run average algorithms. Use
the run queue stats to help detect these cases and bring up the cores in
correspondence.

bump version to 1.2

Change-Id: I9e58514b98c79d51434f7a1b91da2e61029d4e13
Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: use mp_decision() algorithm for core 3 and 4

This replaces the simplistic check for run queue thresholds with a more
sophisticate algorithm with time awareness

bump version to 1.3

Change-Id: I126b365a8764030a1e82f448922c8fd350e6da70
Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: tweak mp_decsion parameters and remove unused logic

Change-Id: I8ad8c76c57a3b775a1ef0948ea6672a5e515e8a2
Signed-off-by: faux123 <reioux@gmail.com>
intelli_plug: bump threshold slightly for better response

Change-Id: Ifc56e06422ff5d7cc66df836c76946ab4e49098c
Signed-off-by: faux123 <reioux@gmail.com>