Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74298
b: refs/heads/master
c: c1a8974
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Nov 28, 2007
1 parent c43fc21 commit 4cd6e6e
Show file tree
Hide file tree
Showing 2 changed files with 6 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: deaf2227ddf657a260e923db44b6f0974d9bb782
refs/heads/master: c1a89740da168d3431f2f4e7c3b03daacbb55be1
8 changes: 5 additions & 3 deletions trunk/kernel/sched_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,12 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
avg_atom = -1LL;

avg_per_cpu = p->se.sum_exec_runtime;
if (p->se.nr_migrations)
avg_per_cpu = div64_64(avg_per_cpu, p->se.nr_migrations);
else
if (p->se.nr_migrations) {
avg_per_cpu = div64_64(avg_per_cpu,
p->se.nr_migrations);
} else {
avg_per_cpu = -1LL;
}

__PN(avg_atom);
__PN(avg_per_cpu);
Expand Down

0 comments on commit 4cd6e6e

Please sign in to comment.