aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_debug.c
diff options
context:
space:
mode:
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)
327 avg_atom = -1LL; 327 avg_atom = -1LL;
328 328
329 avg_per_cpu = p->se.sum_exec_runtime; 329 avg_per_cpu = p->se.sum_exec_runtime;
330 if (p->se.nr_migrations) 330 if (p->se.nr_migrations) {
331 avg_per_cpu = div64_64(avg_per_cpu, p->se.nr_migrations); 331 avg_per_cpu = div64_64(avg_per_cpu,
332 else 332 p->se.nr_migrations);
333 } else {
333 avg_per_cpu = -1LL; 334 avg_per_cpu = -1LL;
335 }
334 336
335 __PN(avg_atom); 337 __PN(avg_atom);
336 __PN(avg_per_cpu); 338 __PN(avg_per_cpu);