Revert "android: lowmemorykiller: Add whitelist PIDs that never been killed"

This reverts commit 9784df9dd77e6d3866da2b9a4068ec7d4416a72e.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
Revert "drivers:staging:android: LMK updates from upstream + some Dorimanx goodies"

This reverts commit d9da6d5440c5a911d1827fd5b9ea4dbc9ff4906f.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
Revert "defconfig: enable ANDROID_LOW_MEMORY_KILLER_AUTODETECT_OOM_ADJ_VALUES"

This reverts commit 27a6383fa201c0878ee48de1bb8cec24e6374478.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
lowmemorykiller: updates from 3.4 kernel

Signed-off-by: Dan Trifan <jimsth@gmail.com>
defconfig: enable ANDROID_LOW_MEMORY_KILLER_AUTODETECT_OOM_ADJ_VALUES

Signed-off-by: Dan Trifan <jimsth@gmail.com>
staging: android: lowmemorykiller: Management of not killable processes

This feature allows the user to define processes and system processes
white-lists filled with the preferred process names and to not be killed
by lowmemorykiller, unless it is absolutely necessary.

This feature exposes four new lowmemorykiller parameters:
- donotkill_proc, is the flag to enable / disable this feature for the
  processes chosen by the user
- donotkill_sysproc, is the flag to enable / disable this feature for the
  system processes chosen by the user
- donotkill_proc_names, is the list of process names (comma separated)
  chosen by the user to be preserved from killing
- donotkill_sysproc_names, is the list of user system process names (comma separated)
  chosen by the user to be preserved from killing

When a the lowmemorykiller needs to free ram, it will first kill the processes
not included inside the two process name lists chosen by the user.
If there are no more standard killable processes, then it will be necessary to
kill one of the processes included inside one of the two white-lists, to
prevent system hangs, slowdowns, etc.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
defconfig: enable CONFIG_ANDROID_LOW_MEMORY_KILLER_DO_NOT_KILL_PROCESS

Signed-off-by: Dan Trifan <jimsth@gmail.com>