projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm/memory-failure.c-failure: send right signal code to correct thread
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
mm
/
oom_kill.c
diff --git
a/mm/oom_kill.c
b/mm/oom_kill.c
index
37b1b19
..
3291e82
100644
(file)
--- a/
mm/oom_kill.c
+++ b/
mm/oom_kill.c
@@
-178,7
+178,7
@@
unsigned long oom_badness(struct task_struct *p, struct mem_cgroup *memcg,
* implementation used by LSMs.
*/
if (has_capability_noaudit(p, CAP_SYS_ADMIN))
* implementation used by LSMs.
*/
if (has_capability_noaudit(p, CAP_SYS_ADMIN))
-
adj -= 3
0;
+
points -= (points * 3) / 10
0;
/* Normalize to oom_score_adj units */
adj *= totalpages / 1000;
/* Normalize to oom_score_adj units */
adj *= totalpages / 1000;