lmkd : Fixed running wrong for Go devices when use_minfree_levels is TRUE am: ed8fc168e6 am: f3f9ff6e01
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2144719 Change-Id: Iee575f456068a7cf98d57a4fbbbcbf1128205c7f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
60325c06b4
3
lmkd.cpp
3
lmkd.cpp
|
|
@ -3069,7 +3069,8 @@ static void mp_event_common(int data, uint32_t events, struct polling_params *po
|
||||||
do_kill:
|
do_kill:
|
||||||
if (low_ram_device) {
|
if (low_ram_device) {
|
||||||
/* For Go devices kill only one task */
|
/* For Go devices kill only one task */
|
||||||
if (find_and_kill_process(level_oomadj[level], NULL, &mi, &wi, &curr_tm, NULL) == 0) {
|
if (find_and_kill_process(use_minfree_levels ? min_score_adj : level_oomadj[level],
|
||||||
|
NULL, &mi, &wi, &curr_tm, NULL) == 0) {
|
||||||
if (debug_process_killing) {
|
if (debug_process_killing) {
|
||||||
ALOGI("Nothing to kill");
|
ALOGI("Nothing to kill");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue