Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94053
b: refs/heads/master
c: 97d87c9
h: refs/heads/master
i:
  94051: 24984ec
v: v3
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Apr 28, 2008
1 parent 0404275 commit b929939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 0c0a4a517a31e05efb38304668198a873bfec6ca
refs/heads/master: 97d87c9710bc6c5f2585fb9dc58f5bedbe996f10
5 changes: 2 additions & 3 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ static DEFINE_SPINLOCK(zone_scan_mutex);
* of least surprise ... (be careful when you change it)
*/

unsigned long badness(struct task_struct *p, unsigned long uptime,
struct mem_cgroup *mem)
unsigned long badness(struct task_struct *p, unsigned long uptime)
{
unsigned long points, cpu_time, run_time, s;
struct mm_struct *mm;
Expand Down Expand Up @@ -256,7 +255,7 @@ static struct task_struct *select_bad_process(unsigned long *ppoints,
if (p->oomkilladj == OOM_DISABLE)
continue;

points = badness(p, uptime.tv_sec, mem);
points = badness(p, uptime.tv_sec);
if (points > *ppoints || !chosen) {
chosen = p;
*ppoints = points;
Expand Down

0 comments on commit b929939

Please sign in to comment.