Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • timer.c
Find file BlameHistoryPermalink
  • Paul E. McKenney's avatar
    timers: Reduce future __run_timers() latency for first add to empty list · 18d8cb64
    Paul E. McKenney authored Dec 16, 2013
    
    
    The __run_timers() function currently steps through the list one jiffy at
    a time in order to update the timer wheel.  However, if the timer wheel
    is empty, no adjustment is needed other than updating ->timer_jiffies.
    Therefore, just before we add a timer to an empty timer wheel, we should
    mark the timer wheel as being up to date.  This marking will reduce (and
    perhaps eliminate) the jiffy-stepping that a future __run_timers() call
    will need to do in response to some future timer posting or migration.
    This commit therefore updates ->timer_jiffies for this case.
    
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
    Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
    Reviewed-by: default avatarOleg Nesterov <oleg@redhat.com>
    Reviewed-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    Tested-by: default avatarMike Galbraith <bitbucket@online.de>
    18d8cb64
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7