Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Reprogram the event source with checking both queues for the* next event* Called with interrupts disabled and base->lock held

Proto:static void hrtimer_force_reprogram(struct hrtimer_cpu_base *cpu_base, int skip_equal)

Type:void

Parameter:

TypeParameterName
struct hrtimer_cpu_base *cpu_base
intskip_equal
635  expires_next = 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
637  If next_timer && is_soft Then
643  If softirq_activated Then expires_next = 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
646  Else softirq_expires_next = expires_next
650  If skip_equal && expires_next == expires_next Then Return
653  expires_next = expires_next
672  If Not Is the high resolution mode active ? || hang_detected Then Return
675  tick_program_event(expires_next, 1)
Caller
NameDescribe
__remove_hrtimer__remove_hrtimer - internal function to remove a timer* Caller must hold the base lock.* High resolution timer mode reprograms the clock event device when the* timer is the one which expires next. The caller can disable this by setting* reprogram to zero