Messages in this thread Patch in this message | | | Date | Sat, 19 Jul 2014 10:53:46 +0200 (CEST) | From | Thomas Gleixner <> | Subject | [GIT pull] scheduler updates for 3.16 |
| |
Linus,
please pull the latest sched-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus
Prevent a possible divide by zero in the debugging code.
Thanks,
tglx
------------------> Mateusz Guzik (1): sched: Fix possible divide by zero in avg_atom() calculation
kernel/sched/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 695f977..627b3c3 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -608,7 +608,7 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m) avg_atom = p->se.sum_exec_runtime; if (nr_switches) - do_div(avg_atom, nr_switches); + avg_atom = div64_ul(avg_atom, nr_switches); else avg_atom = -1LL;
| |