X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=mm%2Foom_kill.c;h=4dda9482f8736ca9e1d7b75da0113389e40059c5;hp=069b64e521fccf2725199550653bfdb7055d6f81;hb=3cc0730eef779b6d7e27d6dfa5bd81f76a2baa0c;hpb=71448c1f4fd7c1b2bab766b3bf2b675cfe71b9ff diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 069b64e521fc..4dda9482f873 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -213,7 +213,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