Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fix from Thomas Gleixner:
"Prevent a possible divide by zero in the debugging code"

* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched: Fix possible divide by zero in avg_atom() calculation

+1 -1
+1 -1
kernel/sched/debug.c
··· 608 608 609 609 avg_atom = p->se.sum_exec_runtime; 610 610 if (nr_switches) 611 - do_div(avg_atom, nr_switches); 611 + avg_atom = div64_ul(avg_atom, nr_switches); 612 612 else 613 613 avg_atom = -1LL; 614 614