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=069b64e521fccf2725199550653bfdb7055d6f81;hb=refs%2Fheads%2Fpandora-3.2-.57-wip;hpb=d2bac6ab932a407008a95d1993702f0a92f8f35e 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