lmkd: move to foreground cpuset before killing

Test: Build and boot
Bug: 199797672
Signed-off-by: Wei Wang <wvw@google.com>
Merged-In: Id475625e0d892fb7111a2cf054d1b57d17003d5a
Change-Id: Id475625e0d892fb7111a2cf054d1b57d17003d5a
(cherry picked from commit 730e7a9248)
This commit is contained in:
Wei Wang 2021-09-30 23:19:30 -07:00
parent 328e612f1b
commit e80774f4b7
1 changed files with 1 additions and 1 deletions

View File

@ -2191,7 +2191,7 @@ static int kill_one_process(struct proc* procp, int min_oom_score, struct kill_i
goto out;
}
set_process_group_and_prio(pid, {"CPUSET_SP_BACKGROUND", "SCHED_SP_FOREGROUND"},
set_process_group_and_prio(pid, {"CPUSET_SP_FOREGROUND", "SCHED_SP_FOREGROUND"},
ANDROID_PRIORITY_HIGHEST);
last_kill_tm = *tm;