diff options
| author | Rik van Riel <[email protected]> | 2015-11-05 20:56:22 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-11-09 15:13:27 +0000 |
| commit | 25b3e5a3344e1f700c1efec5b6f0199f04707fb1 (patch) | |
| tree | 5f3b54f6f8f9a207fc717bda3902f47d83be91f0 /drivers/fpga/fpga-mgr.c | |
| parent | Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/k... (diff) | |
| download | kernel-25b3e5a3344e1f700c1efec5b6f0199f04707fb1.tar.gz kernel-25b3e5a3344e1f700c1efec5b6f0199f04707fb1.zip | |
sched/numa: Fix math underflow in task_tick_numa()
The NUMA balancing code implements delays in scanning by
advancing curr->node_stamp beyond curr->se.sum_exec_runtime.
With unsigned math, that creates an underflow, which results
in task_numa_work being queued all the time, even when we
don't want to.
Avoiding the math underflow makes it possible to reduce CPU
overhead in the NUMA balancing code.
Reported-and-tested-by: Jan Stancek <[email protected]>
Signed-off-by: Rik van Riel <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
