ported lmkiller from abyss NOTEII kernel
staging: android: lowmemorykiller: Add config option to support oom_adj values

The conversion to use oom_score_adj instead of the deprecated oom_adj
values breaks existing user-space code. Add a config option to convert
oom_adj values written to oom_score_adj values if they appear to be
valid oom_adj values.

Change-Id: I68308125059b802ee2991feefb07e9703bc48549
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Adapted from Linux 3.4 from Android kernel common

Signed-off-by: faux123 <reioux@gmail.com>
 staging: android: lowmemorykiller: Don't count reserved free memory

The amount of reserved memory varies between devices. Subtract it
here to reduce the amount of devices specific tuning needed for the
minfree values.

Change-Id: I466ae8b18f5972f6f6d8b5a7d8c4ae69660de53a
Signed-off-by: Arve Hjønnevåg <arve@android.com>
adapted from Linux 3.4 Android Kernel Common

Signed-off-by: faux123 <reioux@gmail.com>
Revert "Use the observation that it is more efficient to check the wakeup"

This reverts commit 954bae3850b442bfaae951c245607a2bdb37b904.
commit vfp
Kernel 1.3.13B
Ported abyssplug & _nightmare cpu governor from AbyssNOTEII kernel