mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm: oom-kill: Add lmk_kill possible for ULMK
While ULMK is active, prevent OOM for order <= COSTLY_ORDER pages. No special actions are taken for larger orders. Change-Id: I4ccba1b71155947569acc3d88ae2027e3b2e0620 Signed-off-by: Patrick Daly <[email protected]> Signed-off-by: Chris Goldsworthy <[email protected]>
This commit is contained in:
parent
c5d20367bc
commit
de77105488
5 changed files with 50 additions and 1 deletions
|
|
@ -1407,8 +1407,10 @@ int group_send_sig_info(int sig, struct kernel_siginfo *info,
|
|||
|
||||
if (!ret && sig) {
|
||||
ret = do_send_sig_info(sig, info, p, type);
|
||||
if (capable(CAP_KILL) && sig == SIGKILL)
|
||||
if (capable(CAP_KILL) && sig == SIGKILL) {
|
||||
add_to_oom_reaper(p);
|
||||
ulmk_update_last_kill();
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue