Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\hrtimer.c Create Date:2022-07-28 10:40:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Recomputes cpu_base::*next_timer and returns the earliest expires_next but* does not set cpu_base::*expires_next, that is done by hrtimer_reprogram

Proto:static ktime_t __hrtimer_get_next_event(struct hrtimer_cpu_base *cpu_base, unsigned int active_mask)

Type:ktime_t

Parameter:

TypeParameterName
struct hrtimer_cpu_base *cpu_base
unsigned intactive_mask
570  struct hrtimer * next_timer = NULL
571  expires_next = KTIME_MAX
573  If Not softirq_activated && active_mask & HRTIMER_ACTIVE_SOFT Then
574  active = active_bases & HRTIMER_ACTIVE_SOFT
575  softirq_next_timer = NULL
576  expires_next = __hrtimer_next_event_base(cpu_base, NULL, active, KTIME_MAX)
579  next_timer = softirq_next_timer
582  If active_mask & HRTIMER_ACTIVE_HARD Then
583  active = active_bases & HRTIMER_ACTIVE_HARD
584  next_timer = next_timer
585  expires_next = __hrtimer_next_event_base(cpu_base, NULL, active, expires_next)
589  Return expires_next
Caller
NameDescribe
hrtimer_force_reprogramReprogram the event source with checking both queues for the* next event* Called with interrupts disabled and base->lock held
hrtimer_update_softirq_timer