Skip to content

Commit

Permalink
sched: clean up overlong line in kernel/sched_debug.c
Browse files Browse the repository at this point in the history
clean up overlong line in kernel/sched_debug.c.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Nov 28, 2007
1 parent deaf222 commit c1a8974
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 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 c1a8974

Please sign in to comment.