Merge "lmkd: Remove redundant free swap and free memory check"
This commit is contained in:
commit
89a7cc48cc
1 changed files with 0 additions and 10 deletions
10
lmkd/lmkd.c
10
lmkd/lmkd.c
|
|
@ -1694,16 +1694,6 @@ do_kill:
|
||||||
static unsigned long report_skip_count = 0;
|
static unsigned long report_skip_count = 0;
|
||||||
|
|
||||||
if (!use_minfree_levels) {
|
if (!use_minfree_levels) {
|
||||||
/* If pressure level is less than critical and enough free swap then ignore */
|
|
||||||
if (level < VMPRESS_LEVEL_CRITICAL &&
|
|
||||||
mi.field.free_swap > low_pressure_mem.max_nr_free_pages) {
|
|
||||||
if (debug_process_killing) {
|
|
||||||
ALOGI("Ignoring pressure since %" PRId64
|
|
||||||
" swap pages are available ",
|
|
||||||
mi.field.free_swap);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
/* Free up enough memory to downgrate the memory pressure to low level */
|
/* Free up enough memory to downgrate the memory pressure to low level */
|
||||||
if (mi.field.nr_free_pages >= low_pressure_mem.max_nr_free_pages) {
|
if (mi.field.nr_free_pages >= low_pressure_mem.max_nr_free_pages) {
|
||||||
if (debug_process_killing) {
|
if (debug_process_killing) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue