HYPER: Remove Dead Code

* Why leave this garbage in here?

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Intellidemand: Remove Dead Code

* Power Suspend is Depreciated and seeing it lingering sickens me.

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Lulzactive and Nightmare: Remove Junk

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Wheatley: Dejunk

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
intelliactive: make touch boost interface generic

Signed-off-by: Paul Reioux <reioux@gmail.com>
Revert "msm: kgsl: Add an input handler to power up the GPU on a touch event"

This reverts commit 9ad5a5dea0e7aa607bdf411054acb186e4f23cb4.
leds: At disable, set the trigger to default instead of wiping it

Change-Id: Ifb4a3b3034c441d29fd1d9f209ed829adfc76a72
Revert "Simple GPU governor: fix a merge derp"

This reverts commit 241e8239d26606594427308d147890876539809d.
Revert "GPU Simple Governor: adapt GPU Simple Governor for Snapdrgaon 800 SOCs"

This reverts commit 38f68306c0fe2b13d6e2997a3581cf6badb0d89c.
Add Interactive by Franco

Includes:

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>

kgsl: merge Interactive GPU governor.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>

msm: gpu: improve my gpu governor algorithm.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>

msm: kgsl: small change on the do_div operation.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>

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>

msm: kgsl: don't forcefully ramp down on sleep if there's still load higher than down_threshold.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

msm: kgsl: remove the sample_time_ms and let the governor run its idle_check freely like Qualcomm intends. I was seeing some frames being lost because the sample_time_ms was too big.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Ondemand as Default

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Enable graphite

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Makefile: Reorganize, Rethink, and Redo

* So with Graphite in the mix I removed all sorts of stuff to find the flag that was erroring.  Now to put everything back and then a few more flags.
  Thanks to @pbeeler for pointing some good kernel flag literature so I could find a few more that suited me.

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
sched/fair: improve fairness efficiency

Measured using hackbench:

PRE-patch :      4.542422684 seconds time elapsed   ( +-  47.40% )
POST-page :      2.389409991 seconds time elapsed   ( +-  47.40% )

Which shows a significant improvement of ~47.40%

Signed-off-by: Paul Reioux <reioux@gmail.com>
sched/fair: Optimize find_busiest_queue()

Use for_each_cpu_and() and thereby avoid computing the capacity for
CPUs we know we're not interested in.

Reviewed-by: Paul Turner <pjt@google.com>
Reviewed-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-lppceyv6kb3a19g8spmrn20b@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul Reioux <reioux@gmail.com>

backported for Linux 3.4

Conflicts:
	kernel/sched/fair.c
sched/fair: Optimize cgroup pick_next_task_fair()

Since commit 2f36825b1 ("sched: Next buddy hint on sleep and preempt
path") it is likely we pick a new task from the same cgroup, doing a put
and then set on all intermediate entities is a waste of time, so try to
avoid this.

Measured using:

  mount nodev /cgroup -t cgroup -o cpu
  cd /cgroup
  mkdir a; cd a
  mkdir b; cd b
  mkdir c; cd c
  echo $$ > tasks
  perf stat --repeat 10 -- taskset 1 perf bench sched pipe

PRE :      4.542422684 seconds time elapsed   ( +-  0.33% )
POST:      4.389409991 seconds time elapsed   ( +-  0.32% )

Which shows a significant improvement of ~3.5%

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1328936700.2476.17.camel@laptop
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul Reioux <reioux@gmail.com>

Backported for Linux 3.4 kernel

Conflicts:
	kernel/sched/fair.c
Merge branch 'stock' into francosound