Revert "msm: kgsl: Add an input handler to power up the GPU on a touch event"

This reverts commit a8e2ecac5c2f4ad5ac7625311d69c769a1927327.
Revert "msm: kgsl: Allow GPU start to run in a high priority queue"

This reverts commit a6d603658e1c06e98adf45bc1e9db09aa52bd649.
msm: kgsl: no need to cast long because jiffies and window_time are already long.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: kgsl: change the load calculation equation & fix a couple of bugs, one of 'em was keeping the GPU on 320MHz if the GPU was not sleeping.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Revert "fixed derp porting userspace extensions of hotplug from HH"

This reverts commit 9051461cc3ae51ae34363b5e75aeaaadf21134da.
Revert "made all,enable and disable threshold available for userspace"

This reverts commit a4747c76dc9e1861f1f601dfabf644f3af3c6ad3.
Revert "auto_hotplug: Add tunable parameters enable/min sampling rate, set min"

This reverts commit 93f2ba50e78840613e62a315a16e878185a589cc.
Revert "auto_hotplug: initial min sampling rate at initialization and change"

This reverts commit 721179f48ce7cff4ac319855bcd054a1f0aa20cd.
Revert "Fix up some various naming issues after inclusion of max_online_cpus code"

This reverts commit a7eed22e36baf8811558ad0db3c98cfba0fde684.
Revert "Add max_online_cpus feature"

This reverts commit c3d35ae243e39ffc5752cce7901945ae76c45b58.
Revert "auto_hotplug: enable the min_online_cpus value"

This reverts commit 1a2ba1c361b542983a6ee8369d439df9321ec88a.
Revert "ARM: add auto hotplug driver"

This reverts commit bec8fdbe567f42989b82d13ea8baa9f3bbcd0b35.
cpufreq: Add cpu-boost driver

When certain bursty and important events take place, it might take a while
for the current cpufreq governor to notice the new load and react to it.
That would result in poor user experience. To alleviate this, the cpu-boost
driver boosts the frequency of a CPU for a short duration to maintain good
user experience while the governor catches up.

Specifically, this commit deals with ensuring that when "important" tasks
migrate from a fast CPU to a slow CPU, the frequency of the slow CPU is
boosted to be at least as high as the fast CPU for a short duration.

Since this driver enforces the boost by hooking into standard cpufreq
ADJUST notifiers, it has several advantages:
- More portable across kernel versions where the cpufreq internals might
  have been rewritten.
- Governor agnostic and hence works with multiple governors like
  conservative, ondemand, interactive, etc.
- Does not affect the sampling period/logic of existing governors.
- Can have the boost period adjusted independent of governor sampling
  period.

Change-Id: Ibd814a20043d0aba64ee7637a4a79b9ffa1b0991
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: flar2 <asegaert@gmail.com>
cpufreq: Add a sync limit to cpu-boost

Perform frequency synchronization only when source CPU's frequency
is less than sync_threshold, else sync to the sync_threshold.

Change-Id: I544c414568d4e015b80ce5891dd215275bac95da
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Signed-off-by: flar2 <asegaert@gmail.com>
Revert "cpufreq: interactive: Fix blocked task warnings"

This reverts commit 7b912cc47366d4157ad5e20ebfeaf8725adf79b6.

Change-Id: I6032804ebdae2cdd90ec7813c08262eeefc1a451
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
Revert "cpufreq: fix interactive bug during hotplug"

This reverts commit 940d4b98eab2577d6c1e710f2939a2b0b6b3f028.

Change-Id: I16ec442f510c45951907417a5c87cd2e31c6c645
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
cpufreq: interactive: take idle notifications only when active

Register an idle notifier only when the governor is active.  Also
short-circuit work of idle end if the governor is not enabled.

Signed-off-by: Sam Leffler <sleffler@chromium.org>
Change-Id: I4cae36dd2e7389540d337d74745ffbaa0131870f
Git-Commit: 22a51ab6e21de740c1b555f9a03626d28aaebdf3
Git-Repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
cpufreq: interactive: keep freezer happy when not current governor

Fix a problem where the hung task mechanism was deeming the interactive
clock boost thread as hung.  This was because the thread is created at
module init but never run/woken up until needed.  If the governor is not
being used this can be forever.  To workaround this explicitly wake up
the thread once all the necessary data structures are initialized.  The
latter required some minor code shuffle.

Signed-off-by: Sam Leffler <sleffler@chromium.org>
Change-Id: Ie2c058dd75dcb6460ea10e7ac997e46baf66b1fe
Git-Commit: 5ff8407798f1d8c44f3165bc535676a2a897666b
Git-Repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
cpufreq: interactive: handle speed up and down in the realtime task

Not useful to have a separate, non-realtime workqueue for speed down
events, avoid priority inversion for speed up events.

Change-Id: Iddcd05545245c847aa1bbe0b8790092914c813d2
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Git-Commit: f8aa05d96a0d18416d2627c493f7dc9bc5324901
Git-Repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
cpufreq: interactive: remove input_boost handling

Now handled in userspace Power HAL instead.

Change-Id: I78a4a2fd471308bfcd785bbefcc65fede27314cf
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Git-Commit: 4e27eb56e819745a1b184f278d7f3dd3887a456c
Git-Repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>