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
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • time
  • timer.c
Find file BlameHistoryPermalink
  • Thomas Gleixner's avatar
    timers: Rework idle logic · bb8caad5
    Thomas Gleixner authored Dec 01, 2023
    
    
    To improve readability of the code, split base->idle calculation and
    expires calculation into separate parts. While at it, update the comment
    about timer base idle marking.
    
    Thereby the following subtle change happens if the next event is just one
    jiffy ahead and the tick was already stopped: Originally base->is_idle
    remains true in this situation. Now base->is_idle turns to false. This may
    spare an IPI if a timer is enqueued remotely to an idle CPU that is going
    to tick on the next jiffy.
    
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarAnna-Maria Behnsen <anna-maria@linutronix.de>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Reviewed-by: default avatarFrederic Weisbecker <frederic@kernel.org>
    Link: https://lore.kernel.org/r/20231201092654.34614-12-anna-maria@linutronix.de
    bb8caad5
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7