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 Ingo Molnar:
"Fix a division by zero bug that can trigger in the NUMA placement
code"

* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched/numa: Fix a possible divide-by-zero

+4
+4
kernel/sched/fair.c
··· 2007 2007 if (p->last_task_numa_placement) { 2008 2008 delta = runtime - p->last_sum_exec_runtime; 2009 2009 *period = now - p->last_task_numa_placement; 2010 + 2011 + /* Avoid time going backwards, prevent potential divide error: */ 2012 + if (unlikely((s64)*period < 0)) 2013 + *period = 0; 2010 2014 } else { 2011 2015 delta = p->se.avg.load_sum; 2012 2016 *period = LOAD_AVG_MAX;