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
  • time
  • timer.c
Find file BlameHistoryPermalink
  • Anna-Maria Behnsen's avatar
    timers: Fix warning condition in __run_timers() · c54bc0fc
    Anna-Maria Behnsen authored Apr 05, 2022
    When the timer base is empty, base::next_expiry is set to base::clk +
    NEXT_TIMER_MAX_DELTA and base::next_expiry_recalc is false. When no timer
    is queued until jiffies reaches base::next_expiry value, the warning for
    not finding any expired timer and base::next_expiry_recalc is false in
    __run_timers() triggers.
    
    To prevent triggering the warning in this valid scenario
    base::timers_pending needs to be added to the warning condition.
    
    Fixes: 31cd0e11
    
     ("timers: Recalculate next timer interrupt only when necessary")
    Reported-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    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/20220405191732.7438-3-anna-maria@linutronix.de
    c54bc0fc
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7