ACPUCLOCK: switch to nominal freq table & lower 192mhz voltage
added intellidemand CPU freq governor (updated to v4.2) thanks to faux123

Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
Intellidemand add 2 phase freq
intelli_plug: intelligent hotplug cpu driver with eco mode

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: tweak for faster wakeup from suspend

bump version to 1.1

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: increase cores on persistence

also replace hardcoded values with Macros for ease of updating later

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: another performance tweak for better UI response

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: make it gcc-4.6.x eabi compatible :p

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.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

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.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

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: tweak mp_decsion parameters and remove unused logic

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: bump threshold slightly for better response

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
wip: intelli_plug: change logic for better benchmark performance

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: use mp_decision to reduce online persistence count for cores

this should bring down the cores faster when run queue is low
also optimized code a bit using local vars

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: restore hysteresis value for quad back to 8

this will reduce the jumpiness of hotplug decisions

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: disable by default

let the user enable via sysfs so it won't clash with mpdecision which is
enabled by default for qualcomm phones

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: slow down hotplug activity from 50ms to 200ms

this will reduce the hotplug chaos which may in turn save more power

Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
intelli_plug: code clean up and minor bug fixes

bump to version 1.6

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: futranbg <nhoc_lau_ca@yahoo.com>
Intelli_plug enable by default thanks to @faux123
scheduler: compute time-average nr_running per run-queue

Compute the time-average number of running tasks per run-queue for a
trailing window of a fixed time period. The detla add/sub to the
average value is weighted by the amount of time per nr_running value
relative to the total measurement period.

Change-Id: I076e24ff4ed65bed3b8dd8d2b279a503318071ff
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
(cherry picked from commit 3a12d7499cee352e8a46eaf700259ba3c733f0e3)
Reviewed-on: http://git-master/r/111635
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

forward ported to Linux 3.4 for use on Mako

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