X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=mm%2Foom_kill.c;h=85e39c630a10cc236874eae6f45a00239c228ec8;hp=9ebc56e1e2eb18df23073b6a1b39c10474cb5274;hb=f7c3ff94a296f2daf8f5f2e8be3e459636c3fdfd;hpb=81e0a6ed9888d145d25b7ccece6e1016626bc3c2 diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 9ebc56e1e2eb..85e39c630a10 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -214,7 +214,7 @@ unsigned int oom_badness(struct task_struct *p, struct mem_cgroup *mem, * implementation used by LSMs. */ if (has_capability_noaudit(p, CAP_SYS_ADMIN)) - points -= 30; + points -= (points * 3) / 100; /* * /proc/pid/oom_score_adj ranges from -1000 to +1000 such that it may