Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-x86
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-x86
  • Repository

Switch branch/tag
  • ipipe-x86
  • kernel
  • sched
  • fair.c
Find file BlameHistoryPermalink
  • Rik van Riel's avatar
    sched/numa: Fix math underflow in task_tick_numa() · 25b3e5a3
    Rik van Riel authored Nov 05, 2015
    
    
    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: default avatarJan Stancek <jstancek@redhat.com>
    Signed-off-by: default avatarRik van Riel <riel@redhat.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: mgorman@suse.de
    Link: http://lkml.kernel.org/r/1446756983-28173-2-git-send-email-riel@redhat.com
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    25b3e5a3

Replace fair.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy