Revert "staging:android:lmk: Use for_each_thread helper"

This reverts commit 1fcdc9f11384c039378bd1657389de4e60bf5e01.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "lmk: Fix Leak"

This reverts commit 69700ef56a22ed59f1434c87aa5c9d6ccc4aa032.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "staging: android: lmk: Kill protected apps if size exceeds than 100 MB"

This reverts commit 8665eecf3cefdebc87ebd9380dbfa3d93b9e331c.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "android:staging:lowmemorkiler: Tune and remove unused parameter"

This reverts commit deed6973c541ebec23659070c071ae82087093de.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "android: staging: lowmemorykiller: Add entry to avoidtokill"

This reverts commit 4f3490a70804f36b0277887bae5e1506022a6858.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "staging: android: LMK: Skip killing core apps"

This reverts commit edb0019dc1972c706360d1d6c4a1b7dd6d50536d.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "mm, oom: change type of oom_score_adj to short"

This reverts commit b73092d78c0e2c822cc310594061d44810a5c008.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "android/lowmemorykiller: Account for total_swapcache_pages"

This reverts commit 9af2b5a22e47bcec5cfb3a7b32e3bf941ba6bef5.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "lowmemorykiller: make default lowmemorykiller debug message useful"

This reverts commit 2b559d643cedd37a5fe340a8258f1fe11d793309.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Revert "staging: lmk: Fine tune OOM for screen on/off"

This reverts commit 3f768a964af53ba0858ad8ebf5d652242b35bd66.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
cpufreq: Introduce intellimm

intelliminmax (intellimm) governor is designed to work with the newer SOCs with fixed voltage rails (ie MSM8974+ SOCs).  It is designed to work within those
fixed voltage ranges in order to maximize battery performance while creating a
smooth UI operations.

Copyright 2014 Paul Reioux <aka faux123>

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

WIP: Intellimm: remove unused code and change tblmap algorithm

tblmap: add power-save frequencies for the first 5 entries

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

WIP: intellimm: more tweaks and table clean up

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

WIP: intellimm: more tweaks

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

WIP: intellimm: clean up derpy logic

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

WIP: intellimm: final clean up and algorithm tweaks

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

WIP: intellimm: finalizing part 2

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

WIP: intellimm: finalizing part 3

add back burst for smoother UI

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

intellimm: fix div by zero derp

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

Conflicts:
	drivers/cpufreq/Kconfig
	drivers/cpufreq/Makefile
	include/linux/cpufreq.h

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Defconfig: Enable IntelliMM

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