Skip to content

Commit b803742

Browse files
weivincewangkdrag0n
authored andcommitted
lmkd: move to foreground cpuset before killing
Test: Build and boot Bug: 199797672 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: Id475625e0d892fb7111a2cf054d1b57d17003d5a
1 parent 8c6d514 commit b803742

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lmkd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ static int kill_one_process(struct proc* procp, int min_oom_score, struct kill_i
21812181
goto out;
21822182
}
21832183

2184-
set_process_group_and_prio(pid, {"CPUSET_SP_BACKGROUND", "SCHED_SP_FOREGROUND"},
2184+
set_process_group_and_prio(pid, {"CPUSET_SP_FOREGROUND", "SCHED_SP_FOREGROUND"},
21852185
ANDROID_PRIORITY_HIGHEST);
21862186

21872187
last_kill_tm = *tm;

0 commit comments

Comments
 (0)