Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54177
b: refs/heads/master
c: 9a82782
h: refs/heads/master
i:
  54175: 35d4a77
v: v3
  • Loading branch information
Joshua N Pritikin authored and Linus Torvalds committed May 7, 2007
1 parent 3ae9a99 commit eed27a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d67f2d7c0fb28b0eb6a6aa100b190526a971ad9
refs/heads/master: 9a82782f8f58219d0c6dc5f0211ce301adf6c6f4
6 changes: 4 additions & 2 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,11 @@ unsigned long badness(struct task_struct *p, unsigned long uptime)
* Adjust the score by oomkilladj.
*/
if (p->oomkilladj) {
if (p->oomkilladj > 0)
if (p->oomkilladj > 0) {
if (!points)
points = 1;
points <<= p->oomkilladj;
else
} else
points >>= -(p->oomkilladj);
}

Expand Down

0 comments on commit eed27a0

Please sign in to comment.