函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\hrtimer.c Create Date:2022-07-27 11:40:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Called from run_local_timers in hardirq context every jiffy

函数原型:void hrtimer_run_queues(void)

返回类型:void

参数:

1726  cpu_base等于this_cpu_ptr( & The timer bases:* There are more clockids than hrtimer bases. Thus, we index* into the timer bases by the hrtimer_base_type enum. When trying* to reach a base using a clockid, hrtimer_clockid_to_base())
1730  如果Is the high resolution mode active ?则返回
1740  如果tick_check_oneshot_change(!hrtimer_is_hres_enabled())则
1741  hrtimer_switch_to_hres()
1742  返回
1745  raw_spin_lock_irqsave( & lock, flags)
1746  now等于hrtimer_update_base(cpu_base)
1748  如果非时间比较
1749  softirq_expires_next等于KTIME_MAX
1750  softirq_activated等于1
1751  This function must run with irqs disabled!
1754  __hrtimer_run_queues(cpu_base, now, flags, HRTIMER_ACTIVE_HARD)
1755  raw_spin_unlock_irqrestore( & lock, flags)
调用者
名称描述
run_local_timers检查有没有定时器到期,有就运行到期定时器的处理