summaryrefslogtreecommitdiffstats
path: root/kernel/sched_debug.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-11-28 15:52:56 +0100
committerIngo Molnar <mingo@elte.hu>2007-11-28 15:52:56 +0100
commitc1a89740da168d3431f2f4e7c3b03daacbb55be1 (patch)
tree93073eeb7d240e9b83767fa30d8489434f0b11b8 /kernel/sched_debug.c
parentdeaf2227ddf657a260e923db44b6f0974d9bb782 (diff)
downloadlinux-c1a89740da168d3431f2f4e7c3b03daacbb55be1.tar.bz2
sched: clean up overlong line in kernel/sched_debug.c
clean up overlong line in kernel/sched_debug.c. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_debug.c')
-rw-r--r--kernel/sched_debug.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 5d0d623a5465..d30467b47ddd 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -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);