X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Foom_kill.c;h=85e39c630a10cc236874eae6f45a00239c228ec8;hb=4cecd7e369e1b252db1d64451462221b362eed1c;hp=069b64e521fccf2725199550653bfdb7055d6f81;hpb=5fbd305dd2b661a243013cf444d2a32bfec2f701;p=pandora-kernel.git diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 069b64e521fc..85e39c630a10 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -143,6 +143,7 @@ struct task_struct *find_lock_task_mm(struct task_struct *p) return NULL; } +EXPORT_SYMBOL_GPL(find_lock_task_mm); /* return true if the task is not adequate as candidate victim task. */ static bool oom_unkillable_task(struct task_struct *p, @@ -213,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